From f63318a20f5ed974de5f8068a67d1292c64ca776 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sun, 11 Aug 2019 15:40:53 +0200 Subject: several code cleanups: avoid #if in macro parameters avoid arithmetic with void pointers (undefined behaviour) avoid some shadowed variables --- afl-common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'afl-common.c') 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 -- cgit 1.4.1