diff options
author | van Hauser <vh@thc.org> | 2020-04-27 22:11:58 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-27 22:11:58 +0200 |
commit | fbd9994f6f959def9c228b81711706bbc5be8cde (patch) | |
tree | b5ffdea8bd04d179c79fcaca9774e177bbc6e219 /src | |
parent | 087c368242f7db2da2564617acf6dd63bf8b671c (diff) | |
download | afl++-fbd9994f6f959def9c228b81711706bbc5be8cde.tar.gz |
better fix for showmap
Diffstat (limited to 'src')
-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); |