diff options
| author | 2020-11-12 14:26:20 +0000 | |
|---|---|---|
| committer | 2020-11-12 14:26:20 +0000 | |
| commit | a68424a611e37f16ba8593bf630a77d49d98708d (patch) | |
| tree | 337950e05afaec0ea74fb8f9d50fc46ccda85a24 /include/clientprotocol.h | |
| parent | Add an AppArmor config. (diff) | |
Silence a harmless warning in newer versions of GCC.
Diffstat (limited to 'include/clientprotocol.h')
| -rw-r--r-- | include/clientprotocol.h | 6 |
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); } |
