summaryrefslogtreecommitdiffstats
path: root/test/swmr_generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/swmr_generator.c')
-rw-r--r--test/swmr_generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/swmr_generator.c b/test/swmr_generator.c
index 64056a1..2bff12c 100644
--- a/test/swmr_generator.c
+++ b/test/swmr_generator.c
@@ -286,7 +286,7 @@ main(int argc, const char *argv[])
/* Chunk index type */
case 'i':
index_type = argv[u + 1];
- if (HDstrcmp(index_type, "ea") && HDstrcmp(index_type, "b2"))
+ if (HDstrcmp(index_type, "ea") != 0 && HDstrcmp(index_type, "b2") != 0)
usage();
u += 2;
break;