summaryrefslogtreecommitdiff
path: root/res/ael/ael_lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/ael/ael_lex.c')
-rw-r--r--res/ael/ael_lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/ael/ael_lex.c b/res/ael/ael_lex.c
index 6517644bd..02d8f82e4 100644
--- a/res/ael/ael_lex.c
+++ b/res/ael/ael_lex.c
@@ -3444,7 +3444,7 @@ static void setup_filestack(char *fnamebuf2, int fnamebuf_siz, glob_t *globbuf,
free(include_stack[include_stack_index].fname);
include_stack[include_stack_index].fname = 0;
}
- include_stack[include_stack_index].fname = strdup(my_file);
+ include_stack[include_stack_index].fname = strdup(S_OR(my_file, "<none>"));
include_stack[include_stack_index].lineno = my_lineno;
include_stack[include_stack_index].colno = my_col+yyleng;
if (my_file)