Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Fixed warnings for this to build cleanly with gcc 7.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasiek committed Mar 3, 2018
1 parent 481331f commit e740d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be-postgres.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand All @@ -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;
Expand Down

0 comments on commit e740d2c

Please sign in to comment.