mirror of
https://github.com/anope/anope.git
synced 2026-06-30 01:56:38 +02:00
Fix some warnings and errors reported by valgrind
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user