From 0b082e2e3101c2704d85c9d3297bce7b86441b82 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Fri, 24 Jan 2020 09:42:44 +0100 Subject: [PATCH] outfile: add missing check for empty string for --outfile-format --- src/outfile.c | 2 ++ 1 file changed, 2 insertions(+) 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