wpa_gui: Initialize WpaGuiApp::w in the constructor
authorJouni Malinen <j@w1.fi>
Tue, 23 Jun 2015 17:23:31 +0000 (20:23 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 23 Jun 2015 17:23:31 +0000 (20:23 +0300)
This gets rid of a static analyzer warning. The actual value for
WpaGuiApp::w will be set after the constructor has returned, so this
value was not really used uninitialized.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_gui-qt4/main.cpp

index 39e01bf..bbd45c6 100644 (file)
@@ -19,6 +19,7 @@ WpaGuiApp::WpaGuiApp(int &argc, char **argv) :
        argc(argc),
        argv(argv)
 {
+       w = NULL;
 }
 
 #if !defined(QT_NO_SESSIONMANAGER) && QT_VERSION < 0x050000