diff options
author | Adam <Adam@anope.org> | 2013-07-03 19:44:13 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-03 19:44:13 -0400 |
commit | c2e1a8a3e2bc2144ad0c4c6009be3ea974aef58f (patch) | |
tree | 6e138bacbfa36b2a2166527f8d32a1e5dcb9e325 /src | |
parent | c62b3cb275800555f4e04f294d432dccf909d134 (diff) |
Fix some warnings and errors reported by valgrind
Diffstat (limited to 'src')
-rw-r--r-- | src/nickcore.cpp | 2 | ||||
-rw-r--r-- | src/regchannel.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/nickcore.cpp b/src/nickcore.cpp index 9bbaae959..3b27268ea 100644 --- a/src/nickcore.cpp +++ b/src/nickcore.cpp @@ -113,9 +113,11 @@ Serializable* NickCore::Unserialize(Serializable *obj, Serialize::Data &data) /* compat */ bool b; + b = false; data["extensible:SECURE"] >> b; if (b) nc->Extend<bool>("NS_SECURE"); + b = false; data["extensible:PRIVATE"] >> b; if (b) nc->Extend<bool>("NS_PRIVATE"); diff --git a/src/regchannel.cpp b/src/regchannel.cpp index e06f53690..83cf2407f 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -290,10 +290,12 @@ Serializable* ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data) /* compat */ bool b; + b = false; data["extensible:SECURE"] >> b; if (b) ci->Extend<bool>("CS_SECURE"); data["extensible:PRIVATE"] >> b; + b = false; if (b) ci->Extend<bool>("CS_PRIVATE"); /* end compat */ |