diff options
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index 71f5ddd..93755e9 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -595,7 +595,8 @@ int compile_packets(char *file, int verbose, int cpu, bool invoke_cpp) slprintf(tmp_file, sizeof(tmp_file), "%s/.tmp-%u-%s", dir, rand(), base); slprintf(cmd, sizeof(cmd), "cpp -I" PREFIX_STRING "/etc/netsniff-ng/ %s > %s", file, tmp_file); - system(cmd); + if (system(cmd) != 0) + panic("Failed to invoke C preprocessor!\n"); file = tmp_file; xfree(a); |