]> jfr.im git - irc/quakenet/newserv.git/commitdiff
a4stats: Fix compiler warning.
authorGunnar Beutner <redacted>
Wed, 26 Feb 2014 18:45:03 +0000 (19:45 +0100)
committerGunnar Beutner <redacted>
Wed, 26 Feb 2014 18:45:03 +0000 (19:45 +0100)
a4stats/a4stats_db.c

index ea447a657aeea99e644f314b9e92bfa03d8a4e41..c0a1d71329a66f95023e4d1e0c1928808842447b 100644 (file)
@@ -200,7 +200,7 @@ static void a4stats_update_user_cb(const struct DBAPIResult *result, void *uarg)
     a4statsdb->query(a4statsdb, a4stats_update_user_cb, uui, uui->update, "TUUs", "users", uui->channelid, uui->accountid, uui->account);
   else {
     if (result == NULL || result->affected > 0 || uui->stage == 4) {
-      if (result == NULL || result->affected == 0 && uui->stage == 4)
+      if (result == NULL || (result->affected == 0 && uui->stage == 4))
         Error("a4stats", ERR_WARNING, "Unable to update user.");
 
       free(uui->update);