bugfix: command-line crash on parser error

stl_dim
Marius Kintel 2011-09-08 05:14:29 +02:00
parent 7a139c2558
commit 512e7bb1be
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ int main(int argc, char **argv)
fclose(fp);
text << commandline_commands;
root_module = parse(text.str().c_str(), fileInfo.absolutePath().toLocal8Bit(), false);
if (!root_module) exit(1);
}
QDir::setCurrent(fileInfo.absolutePath());