about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-08-13 22:34:11 +0200
committervan Hauser <vh@thc.org>2020-08-13 22:34:11 +0200
commitb5d1a021efaede5e084418fe552330590ee43641 (patch)
treec4de3f80bd21fd5229a54b7fb9fb0317ddd27b51 /src
parente9fb5f4cbc9f3514d686ebf813b16829ed73b3da (diff)
downloadafl++-b5d1a021efaede5e084418fe552330590ee43641.tar.gz
fix llvm and afl-showmap
Diffstat (limited to 'src')
-rw-r--r--src/afl-showmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index fa9eedc4..47c615d8 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -963,7 +963,7 @@ int main(int argc, char **argv_orig, char **envp) {
 
     // if a queue subdirectory exists switch to that
     u8 *dn = alloc_printf("%s/queue", in_dir);
-    if ((dir_in = opendir(in_dir))) {
+    if ((dir_in = opendir(dn)) != NULL) {
 
       closedir(dir_in);
       in_dir = dn;