From f591cb0181262789bc0688249a0f86f389126269 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 18 Feb 2015 10:36:20 +0100 Subject: [PATCH] sanitized strcmp check --- src/config.c | 2 +- src/sup-config/file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 98a0b9f0..332b1f5c 100644 --- a/src/config.c +++ b/src/config.c @@ -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++; \ diff --git a/src/sup-config/file.c b/src/sup-config/file.c index 4c1e65bd..fa6cfa95 100644 --- a/src/sup-config/file.c +++ b/src/sup-config/file.c @@ -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++; \