summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flex.skl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flex.skl b/src/flex.skl
index ccec415..de45168 100644
--- a/src/flex.skl
+++ b/src/flex.skl
@@ -2056,7 +2056,7 @@ static void yy_load_buffer_state (M4_YY_DEF_ONLY_ARG)
b->yy_input_file = file;
%endif
%if-c++-only
- b->yy_input_file = file.rdbuf();
+ b->yy_input_file = (&file == 0) ? NULL : file.rdbuf();
%endif
b->yy_fill_buffer = 1;