wpa_gui: Initialize WpaGuiApp::w in the constructor

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>
This commit is contained in:
Jouni Malinen 2015-06-23 20:23:31 +03:00
parent f6df3f3a00
commit f6332b0be1
1 changed files with 1 additions and 0 deletions

View File

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