diff --git a/src/outfile.c b/src/outfile.c index f1d2b4989..b04a59a7a 100644 --- a/src/outfile.c +++ b/src/outfile.c @@ -29,6 +29,8 @@ u32 outfile_format_parse (const char *format_string) char *next = strtok_r (format, ",", &saveptr); + if (next == NULL) return 0; + u32 outfile_format = 0; do