about summary refs log tree commit diff
path: root/test-instr.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-02-01 12:01:23 +0100
committervan Hauser <vh@thc.org>2021-02-01 12:01:23 +0100
commit981ffb27a8a166b51a06d57fce044ed1eaf1aa62 (patch)
treef4ee467c9b3df7fbfc84533429717f64f7b6e4ab /test-instr.c
parent522eacce71a91f0495834215b08ac38750a4f5d8 (diff)
downloadafl++-981ffb27a8a166b51a06d57fce044ed1eaf1aa62.tar.gz
making AFL_MAP_SIZE obsolete
Diffstat (limited to 'test-instr.c')
-rw-r--r--test-instr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-instr.c b/test-instr.c
index 84ac0036..00799103 100644
--- a/test-instr.c
+++ b/test-instr.c
@@ -32,7 +32,8 @@ int main(int argc, char **argv) {
 
   } else {
 
-    if (argc >= 3 && strcmp(argv[1], "-f") == 0)
+    if (argc >= 3 && strcmp(argv[1], "-f") == 0) {
+
       if ((fd = open(argv[2], O_RDONLY)) < 0) {
 
         fprintf(stderr, "Error: unable to open %s\n", argv[2]);
@@ -40,6 +41,8 @@ int main(int argc, char **argv) {
 
       }
 
+    }
+
     if (read(fd, buf, sizeof(buf)) < 1) {
 
       printf("Hum?\n");