]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Silence a harmless warning in newer versions of GCC.
authorSadie Powell <sadie@witchery.services>
Thu, 12 Nov 2020 14:26:20 +0000 (14:26 +0000)
committerSadie Powell <sadie@witchery.services>
Thu, 12 Nov 2020 14:26:20 +0000 (14:26 +0000)
include/clientprotocol.h

index 16f08a6f6a010e10ef9f65cde810bae405cb312a..29035250d34e04bc9fceb32f031747bd2f333368 100644 (file)
@@ -239,13 +239,15 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource
                }
 
                Param(int, const char* s)
-                       : owned(true)
+                       : ptr(NULL)
+                       , owned(true)
                {
                        new(str) std::string(s);
                }
 
                Param(int, const std::string& s)
-                       : owned(true)
+                       : ptr(NULL)
+                       , owned(true)
                {
                         new(str) std::string(s);
                }