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 /modules/commands/cs_log.cpp | |
parent | c62b3cb275800555f4e04f294d432dccf909d134 (diff) |
Fix some warnings and errors reported by valgrind
Diffstat (limited to 'modules/commands/cs_log.cpp')
-rw-r--r-- | modules/commands/cs_log.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index bc6ba73c6..4de7e31ee 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -51,7 +51,7 @@ struct LogSettingImpl : LogSetting, Serializable if (ci == NULL) return NULL; - LogSetting *ls; + LogSettingImpl *ls; if (obj) ls = anope_dynamic_static_cast<LogSettingImpl *>(obj); else @@ -69,6 +69,8 @@ struct LogSettingImpl : LogSetting, Serializable data["extra"] >> ls->extra; data["creator"] >> ls->creator; data["created"] >> ls->created; + + return ls; } }; |