]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_userip Fix incorrect "variable may be used uninitialized" warning shown by older...
authorattilamolnar <attilamolnar@hush.com>
Tue, 9 Jul 2013 15:34:10 +0000 (17:34 +0200)
committerattilamolnar <attilamolnar@hush.com>
Tue, 9 Jul 2013 15:34:10 +0000 (17:34 +0200)
src/modules/m_userip.cpp

index bfac36b1a5ce2534e0a1c6a5a5b48ba616f63669..5ea84c04aa8b925c382b48a12db83d0a70ac300e 100644 (file)
@@ -38,7 +38,7 @@ class CommandUserip : public Command
                std::string retbuf = "340 " + user->nick + " :";
                int nicks = 0;
                bool checked_privs = false;
-               bool has_privs;
+               bool has_privs = false;
 
                for (int i = 0; i < (int)parameters.size(); i++)
                {