X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.cpp;h=eb0fc64829f6a1226e82491284060490c30174bb;hb=c8230ab0d0a919530c43c29395f4d9961498bf15;hp=009bf39cf1ed2bdbae82bbc76903cfa3665a6335;hpb=f11bfe1697492f79f8cc02d4021305005cf539ef;p=lyx.git diff --git a/src/Session.cpp b/src/Session.cpp index 009bf39cf1..eb0fc64829 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -507,8 +507,7 @@ void ShellEscapeSection::read(istream & is) if (c == '[') break; getline(is, s); - c = s[0]; - if (c == 0 || c == '#' || c == ' ' || !FileName::isAbsolute(s)) + if (s.empty() || s[0] == '#' || s[0] == ' ' || !FileName::isAbsolute(s)) continue; // read shellescape files