sanitized strcmp check

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-18 10:36:20 +01:00
parent 7a46da3379
commit f591cb0181
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ unsigned j;
} \
} \
do { \
if (val && !strcmp(val->pzName, name)==0) \
if (val && strcmp(val->pzName, name)!=0) \
continue; \
s_name[num] = talloc_strdup(s_name, val->v.strVal); \
num++; \

View File

@@ -76,7 +76,7 @@ static struct cfg_options available_options[] = {
do { \
if (num >= MAX_CONFIG_ENTRIES) \
break; \
if (val && !strcmp(val->pzName, name)==0) \
if (val && strcmp(val->pzName, name)!=0) \
continue; \
s_name[num] = talloc_strdup(pool, val->v.strVal); \
num++; \