diff options
author | van Hauser <vh@thc.org> | 2020-03-09 19:40:59 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-03-09 19:40:59 +0100 |
commit | 73a1b39446f604698181add181d2b2489a635333 (patch) | |
tree | de63594f8322d8f3937859b192b88b937a64f65b /src/afl-common.c | |
parent | 253bbf3a5c4323c33952f0408df6afbcd9310603 (diff) | |
download | afl++-73a1b39446f604698181add181d2b2489a635333.tar.gz |
quickfix for first big bug that use_stdin was not correctly initialized and could not be set
Diffstat (limited to 'src/afl-common.c')
-rw-r--r-- | src/afl-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-common.c b/src/afl-common.c index f175f604..67ff2a1b 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -38,7 +38,7 @@ extern u8 be_quiet; -void detect_file_args(char** argv, u8* prog_in, u8 use_stdin) { +void detect_file_args(char** argv, u8* prog_in, u8 *use_stdin) { u32 i = 0; #ifdef __GLIBC__ @@ -149,7 +149,7 @@ char **create_file_args(int argc, char** argv, u8* prog_in, u8 use_stdin) { if (!prog_in) FATAL("@@ syntax is not supported by this tool."); - use_stdin = 0; + *use_stdin = 0; if (prog_in[0] != 0) { // not afl-showmap special case |