]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
modules/core/m_mode.c: misc cleanup for compiler warning
authorAaron Jones <redacted>
Mon, 31 Jul 2017 06:08:06 +0000 (06:08 +0000)
committerAaron Jones <redacted>
Fri, 4 Aug 2017 12:32:57 +0000 (12:32 +0000)
core/m_mode.c:378:11: warning: possible misuse of comma operator here
                      [-Wcomma]

modules/core/m_mode.c

index 99f180ded2d63170b71137d97f509832da6b42d1..64924ef24d5122de40a8308d51e30499acf401c1 100644 (file)
@@ -375,7 +375,10 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char
                {
                        *forward++ = '\0';
                        if(*forward == '\0')
-                               tlen--, forward = NULL;
+                       {
+                               tlen--;
+                               forward = NULL;
+                       }
                        else
                                possibly_remove_lower_forward(fakesource_p,
                                                mems, chptr, banlist,