about summary refs log tree commit diff
path: root/llvm_mode/afl-ld-lto.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-14 12:06:00 +0200
committervan Hauser <vh@thc.org>2020-08-14 12:06:00 +0200
commit5f0a9c90c83b2fc9cdd8bc583e9843c9bd9d9ecb (patch)
tree11201080d23e381e3770cedc6c57ce69b7f95961 /llvm_mode/afl-ld-lto.c
parent9ff9ff2ad2a8b4f66a64f47a3252d13803774cd2 (diff)
downloadafl++-5f0a9c90c83b2fc9cdd8bc583e9843c9bd9d9ecb.tar.gz
fixes lots of llvm warnings
Diffstat (limited to 'llvm_mode/afl-ld-lto.c')
-rw-r--r--llvm_mode/afl-ld-lto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/afl-ld-lto.c b/llvm_mode/afl-ld-lto.c
index 1b59bb4a..771e2d0d 100644
--- a/llvm_mode/afl-ld-lto.c
+++ b/llvm_mode/afl-ld-lto.c
@@ -278,7 +278,7 @@ int main(int argc, char **argv) {
 
   if (debug) {
 
-    (void)getcwd(thecwd, sizeof(thecwd));
+    if (getcwd(thecwd, sizeof(thecwd)) != 0) strcpy(thecwd, ".");
 
     SAYF(cMGN "[D] " cRST "cd \"%s\";", thecwd);
     for (i = 0; i < argc; i++)