about summary refs log tree commit diff
path: root/afl-common.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-08-11 15:40:53 +0200
committerhexcoder- <heiko@hexco.de>2019-08-11 15:40:53 +0200
commitf63318a20f5ed974de5f8068a67d1292c64ca776 (patch)
tree458809445cf9b661c4d5cadf59b3fbf02ae44dab /afl-common.c
parentf5d4912ca837d5efcd1aac4d436c7563c7614646 (diff)
downloadafl++-f63318a20f5ed974de5f8068a67d1292c64ca776.tar.gz
several code cleanups: avoid #if in macro parameters
avoid arithmetic with void pointers (undefined behaviour)
avoid some shadowed variables
Diffstat (limited to 'afl-common.c')
-rw-r--r--afl-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/afl-common.c b/afl-common.c
index 1c5e5bfe..5e2d0628 100644
--- a/afl-common.c
+++ b/afl-common.c
@@ -28,6 +28,7 @@ void detect_file_args(char** argv, u8* prog_in) {
     cwd = getcwd(buf, (size_t)size); /* portable version */
   } else {
     PFATAL("getcwd() failed");
+    cwd = 0; /* for dumb compilers */
   }
 #endif