From afd52e161186769a6bdbbad722d11a728b4964fa Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 29 Jan 2007 22:37:37 +0000 Subject: [PATCH] fixed a crash bug from not initializing properly --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40419 --- core/systems/PluginSys.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/systems/PluginSys.cpp b/core/systems/PluginSys.cpp index 15284a06..3be86aa4 100644 --- a/core/systems/PluginSys.cpp +++ b/core/systems/PluginSys.cpp @@ -213,6 +213,8 @@ void CPlugin::UpdateInfo() IPluginContext *base = GetBaseContext(); int err = base->FindPubvarByName("myinfo", &idx); + memset(&m_info, 0, sizeof(m_info)); + if (err == SP_ERROR_NONE) { struct sm_plugininfo_c_t