]> granicus.if.org Git - pgbouncer/commitdiff
add !=0 to strcmp()
authorMarko Kreen <markokr@gmail.com>
Fri, 23 Nov 2007 10:45:47 +0000 (10:45 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 23 Nov 2007 10:45:47 +0000 (10:45 +0000)
src/loader.c

index 0c5212f4d915dba4012b8f715531edd704f03d8b..6c9abfcda1d76b4f3fc8d114a7f75fe2602062c4 100644 (file)
@@ -249,7 +249,7 @@ void parse_database(char *name, char *connstr)
                        changed = true;
                else if (username && !db->forced_user)
                        changed = true;
-               else if (username && strcmp(username, db->forced_user->name))
+               else if (username && strcmp(username, db->forced_user->name) != 0)
                        changed = true;
                else if (!username && db->forced_user)
                        changed = true;