summaryrefslogtreecommitdiff
path: root/include/clientprotocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clientprotocol.h')
-rw-r--r--include/clientprotocol.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clientprotocol.h b/include/clientprotocol.h
index 16f08a6f6..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);
}