From be23ca74e47887d5e4306a82c214db42fff0a944 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Tue, 9 Jul 2013 17:34:10 +0200 Subject: m_userip Fix incorrect "variable may be used uninitialized" warning shown by older GCC versions --- src/modules/m_userip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index bfac36b1a..5ea84c04a 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -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++) { -- cgit v1.2.3