summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index afcb3e2..44751ab 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -625,7 +625,7 @@ void compile_packets(char *file, bool verbose, unsigned int cpu, bool invoke_cpp
ret = 0;
err:
- if (yyin != stdin)
+ if (yyin && yyin != stdin)
fclose(yyin);
if (invoke_cpp)