From c2e1a8a3e2bc2144ad0c4c6009be3ea974aef58f Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 3 Jul 2013 19:44:13 -0400 Subject: Fix some warnings and errors reported by valgrind --- modules/commands/cs_log.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/commands/cs_log.cpp') 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(obj); else @@ -69,6 +69,8 @@ struct LogSettingImpl : LogSetting, Serializable data["extra"] >> ls->extra; data["creator"] >> ls->creator; data["created"] >> ls->created; + + return ls; } }; -- cgit