summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_ini.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:52:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 13:52:01 +0000
commita15cd68f0412e1b211e746a2e4d5682e96f5a113 (patch)
treed09d41832621cfc07957dbbcd60077fdf96b7e66 /plugins/Weather/src/weather_ini.cpp
parent85bd008c039eb1d93894e94fba9d158a42a71a12 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@14911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_ini.cpp')
-rw-r--r--plugins/Weather/src/weather_ini.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Weather/src/weather_ini.cpp b/plugins/Weather/src/weather_ini.cpp
index 3a55f8554d..946f98cf8f 100644
--- a/plugins/Weather/src/weather_ini.cpp
+++ b/plugins/Weather/src/weather_ini.cpp
@@ -94,9 +94,7 @@ void WIItemListAdd(WIDATAITEM *DataItem, WIDATA *Data)
// name = the string to store in the "name" field
void ResetDataItem(WIDATAITEM *Item, const TCHAR *name)
{
- TCHAR str[] = _T("ID Search - Station Name");
- Item->Name = ( TCHAR* )mir_alloc( sizeof(str));
- mir_tstrcpy(Item->Name, str);
+ Item->Name = mir_tstrdup(name);
Item->Start = _T("");
Item->End = _T("");
Item->Unit = _T("");