diff --git a/main.cpp b/main.cpp index 7b3f3dc..635fa44 100644 --- a/main.cpp +++ b/main.cpp @@ -224,7 +224,7 @@ InputExtractor::List InputExtractor::operator()(const Path::Path &file, const Me }; IncludeCommands["include"] = IncludeCommands["input"]; - IncludeCommands["lstinputlisting"] = [file](List &l, std::string a){ l.push_back(fixFilename(a, file)); }; + IncludeCommands["lstinputlisting"] = [file](List &l, std::string a){ if (!a.empty()) { l.push_back(fixFilename(a, file)); } }; MemoryString::const_iterator current = str.begin();