diff --git a/src/sleuth.c b/src/sleuth.c index 8666409..d4d6eff 100644 --- a/src/sleuth.c +++ b/src/sleuth.c @@ -7,7 +7,7 @@ struct gargoyle_opt *gargoyle_find_brand(uint16_t optc, struct gargoyle_opt *opt for(; optc; optc -= 1, optv += 1) { const char *idx = brand; - if(optv->type == GARGOYLE_TYPE_BOOL && gargoyle_cmp(idx, "no-", 3, GARGOYLE_CMP_ICASE)) { + if(optv->type & GARGOYLE_TYPE_BOOL && gargoyle_cmp(idx, "no-", 3, GARGOYLE_CMP_ICASE)) { idx += 3; }