X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fclientprotocol.h;h=29035250d34e04bc9fceb32f031747bd2f333368;hb=a30a0074edac353cb60e134b43fa8ff0ffb67f8b;hp=e0ac78a88e1b5f75c2a33cf7e1ef5f18127866cc;hpb=aa692dc1039b63deef7886e914ec499abe7facaf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/clientprotocol.h b/include/clientprotocol.h index e0ac78a88..29035250d 100644 --- a/include/clientprotocol.h +++ b/include/clientprotocol.h @@ -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); } @@ -700,7 +702,7 @@ class CoreExport ClientProtocol::Serializer : public DataProvider * @param tagname Name of the tag. * @param tagvalue Tag value, may be empty. * @param tags TagMap to place the tag into, if it gets accepted. - * @return True if no error occured, false if the tag name is invalid or if this tag already exists. + * @return True if no error occurred, false if the tag name is invalid or if this tag already exists. */ bool HandleTag(LocalUser* user, const std::string& tagname, std::string& tagvalue, TagMap& tags) const;