diff options
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r-- | src/afl-showmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c index 3b3bdefe..a51d520d 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -871,7 +871,7 @@ int main(int argc, char **argv_orig, char **envp) { fsrv->out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600); if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } - if (use_argv[arg_offset] != stdin_file) { + if (arg_offset && use_argv[arg_offset] != stdin_file) { use_argv[arg_offset] = strdup(stdin_file); |