diff options
Diffstat (limited to 'protocols/Weather/src/weather.cpp')
-rw-r--r-- | protocols/Weather/src/weather.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/protocols/Weather/src/weather.cpp b/protocols/Weather/src/weather.cpp index 4eafadbad7..243156ef22 100644 --- a/protocols/Weather/src/weather.cpp +++ b/protocols/Weather/src/weather.cpp @@ -43,7 +43,7 @@ HANDLE hUpdateMutex; unsigned status; unsigned old_status; -UINT_PTR timerId; +UINT_PTR timerId = 0; CMPlugin g_plugin; @@ -53,7 +53,7 @@ MYOPTIONS opt; BOOL ThreadRunning; // variable to determine if module loaded -BOOL ModuleLoaded; +BOOL ModuleLoaded = FALSE; HANDLE hTBButton = nullptr; @@ -139,24 +139,8 @@ int WeatherInit(WPARAM, LPARAM) //============ MISC FUNCTIONS ============ -// initialize the global variables at startup -void InitVar() -{ - // setup the linklist for weather update list - UpdateListTail = nullptr; - UpdateListHead = nullptr; - - // other settings - timerId = 0; - opt.DefStn = NULL; - ModuleLoaded = FALSE; -} - int CMPlugin::Load() { - // initialize global variables - InitVar(); - // load options and set defaults LoadOptions(); |