From: Marko Kreen Date: Fri, 23 Nov 2007 10:45:47 +0000 (+0000) Subject: add !=0 to strcmp() X-Git-Tag: pgbouncer_1_2_rc2~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11a9b26ca439316efa80200ed8f5824efba02eb1;p=pgbouncer add !=0 to strcmp() --- diff --git a/src/loader.c b/src/loader.c index 0c5212f..6c9abfc 100644 --- a/src/loader.c +++ b/src/loader.c @@ -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;