about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-09 19:42:23 +0100
committervan Hauser <vh@thc.org>2020-03-09 19:42:23 +0100
commit416020daefb2587fe071a456e1dbb8ffbb007e6a (patch)
treed920522cbc9871e507a534159488e3da44ef3c56 /src
parent73a1b39446f604698181add181d2b2489a635333 (diff)
downloadafl++-416020daefb2587fe071a456e1dbb8ffbb007e6a.tar.gz
quickfix for first big bug that use_stdin was not correctly initialized and could not be set
Diffstat (limited to 'src')
-rw-r--r--src/afl-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-common.c b/src/afl-common.c
index 67ff2a1b..cce878f1 100644
--- a/src/afl-common.c
+++ b/src/afl-common.c
@@ -74,7 +74,7 @@ void detect_file_args(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
 
@@ -109,7 +109,7 @@ void detect_file_args(char** argv, u8* prog_in, u8 *use_stdin) {
 }
 
 
-char **create_file_args(int argc, char** argv, u8* prog_in, u8 use_stdin) {
+char **create_file_args(int argc, char** argv, u8* prog_in, u8 *use_stdin) {
 
   u32 i = 0;