diff --git a/main/config.c b/main/config.c index 30817be416..a3d82f4f88 100644 --- a/main/config.c +++ b/main/config.c @@ -1168,7 +1168,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;