From e740d2c0f2ef43f28827bdf4f9c7222bb0724cd6 Mon Sep 17 00:00:00 2001 From: Jan Szumiec Date: Sat, 3 Mar 2018 22:57:32 +0000 Subject: [PATCH] Fixed warnings for this to build cleanly with gcc 7.3.0. --- be-postgres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be-postgres.c b/be-postgres.c index 476b5c58..5ad2c965 100644 --- a/be-postgres.c +++ b/be-postgres.c @@ -389,7 +389,7 @@ int addKeyValue(char **keywords, char **values, char *key, char *value, } // Get length of dictionary - while (*(keywords + n) != '\0') + while (keywords[n] != NULL) { n++; } @@ -401,7 +401,7 @@ int addKeyValue(char **keywords, char **values, char *key, char *value, } // Check for dictionary end - if ((keywords[n] != '\0') || (values[n] != '\0')){ + if ((keywords[n] != NULL) || (values[n] != NULL)){ // Dictionary wasn't initialized properly or it is the // dictionaries end. --> Abort return -2;