about summary refs log tree commit diff
path: root/afl-common.c
diff options
context:
space:
mode:
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