diff --git a/main/config.c b/main/config.c index ca7d566884..1f4294e95d 100644 --- a/main/config.c +++ b/main/config.c @@ -1114,7 +1114,7 @@ int ast_category_empty(struct ast_config *cfg, const char *category) struct ast_category *cat; for (cat = cfg->root; cat; cat = cat->next) { - if (!strcasecmp(cat->name, category)) + if (strcasecmp(cat->name, category)) continue; ast_variables_destroy(cat->root); cat->root = NULL;