X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fclientprotocol.h;h=decb2fcf496a69693513a6c71f5c63deca023cf4;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=16f08a6f6a010e10ef9f65cde810bae405cb312a;hpb=4f9abe96a4301a740d4a5fd7932550d88d60a3fc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/clientprotocol.h b/include/clientprotocol.h index 16f08a6f6..decb2fcf4 100644 --- a/include/clientprotocol.h +++ b/include/clientprotocol.h @@ -239,15 +239,17 @@ 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); + new(str) std::string(s); } Param(const Param& other)