summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiles Bathgate <gilesbathgate@gmail.com>2010-12-11 12:41:23 (GMT)
committerGiles Bathgate <gilesbathgate@gmail.com>2010-12-11 12:41:23 (GMT)
commit052f8bc620f579271be69a0d0d699b8b4ac5bb14 (patch)
treeb2e03d298fa5ddfa7f9e70ac67e5e2848bc66769 /src
parent03c02cde89d43d465b9e9a354be8668fe6fca56d (diff)
Fix for when the included file doesn't exist. Needed because we will never get an EOF, and so never pop the stack.
Diffstat (limited to 'src')
-rw-r--r--src/lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lexer.l b/src/lexer.l
index 9e8aaf8..932711b 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -202,6 +202,7 @@ void includefile()
yyin = fopen(finfo.absoluteFilePath().toLocal8Bit(), "r");
if (!yyin) {
PRINTA("WARNING: Can't open input file `%1'.", filename);
+ path_stack.pop();
return;
}
filename.clear();
contact: Jan Huwald // Impressum