summaryrefslogtreecommitdiff
path: root/plugins/NewXstatusNotify
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-08 17:03:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-08 17:03:32 +0000
commit164424ac47e2be37daa5e4346cc29a865042027e (patch)
tree6307df66048221a4e8bcf4049a8b380a53ae499a /plugins/NewXstatusNotify
parent622896cbc0960da3ea412615d23dfb30d624539b (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@362 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify')
-rw-r--r--plugins/NewXstatusNotify/xstatus.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/NewXstatusNotify/xstatus.cpp b/plugins/NewXstatusNotify/xstatus.cpp
index 4692dd5682..d6f4997e13 100644
--- a/plugins/NewXstatusNotify/xstatus.cpp
+++ b/plugins/NewXstatusNotify/xstatus.cpp
@@ -217,7 +217,7 @@ void ShowPopup(XSTATUSCHANGE *xsc)
xsc->stzText = mir_tstrdup(buff);
}
- TCHAR *Template;
+ TCHAR *Template = _T("");
switch (xsc->action)
{
case NOTIFY_NEW_XSTATUS:
@@ -226,6 +226,8 @@ void ShowPopup(XSTATUSCHANGE *xsc)
Template = templates.PopupNewMsg; break;
case NOTIFY_REMOVE:
Template = templates.PopupRemove; break;
+ case NOTIFY_OPENING_ML:
+ Template = templates.LogOpening; break;
}
TCHAR stzPopupText[2*MAX_TEXT_LEN];
@@ -264,7 +266,7 @@ void LogToMessageWindow(XSTATUSCHANGE *xsc, BOOL opening)
xsc->stzText = mir_tstrdup(buff);
}
- TCHAR *Template;
+ TCHAR *Template = _T("");
switch (xsc->action)
{
case NOTIFY_NEW_XSTATUS: