summaryrefslogtreecommitdiff
path: root/src/certtool-cfg.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-08 12:53:44 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-08 13:00:53 +0200
commit999bbe1eb74e6c4f7d7827c8875276eb0293d7ee (patch)
treee9964fb64081d1ef58afc4b2a88c4e8ad178d7f0 /src/certtool-cfg.c
parentcbee503887d2b477a3a974158ec2ccfd41947b0c (diff)
downloadgnutls-999bbe1eb74e6c4f7d7827c8875276eb0293d7ee.tar.gz
certtool: corrected typo in strcmp() use
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src/certtool-cfg.c')
-rw-r--r--src/certtool-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/certtool-cfg.c b/src/certtool-cfg.c
index 657ef0ad93..7f552c08c7 100644
--- a/src/certtool-cfg.c
+++ b/src/certtool-cfg.c
@@ -246,7 +246,7 @@ void cfg_init(void)
i = 0; \
s_name = malloc(sizeof(char*)*MAX_ENTRIES); \
do { \
- if (val && !strcmp(val->pzName, name)==0) \
+ if (val && strcmp(val->pzName, name)!=0) \
continue; \
s_name[i] = strdup(val->v.strVal); \
i++; \
@@ -268,7 +268,7 @@ void cfg_init(void)
i = 0; \
s_name = malloc(sizeof(char*)*MAX_ENTRIES); \
do { \
- if (val && !strcmp(val->pzName, name)==0) \
+ if (val && strcmp(val->pzName, name)!=0) \
continue; \
len = strlen(val->v.strVal); \
if (sizeof(str) > (unsigned)len) { \