projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6df3f3
)
wpa_gui: Initialize WpaGuiApp::w in the constructor
author
Jouni Malinen
<j@w1.fi>
Tue, 23 Jun 2015 17:23:31 +0000
(20:23 +0300)
committer
Jouni 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
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_gui-qt4/main.cpp
b/wpa_supplicant/wpa_gui-qt4/main.cpp
index
39e01bf
..
bbd45c6
100644
(file)
--- a/
wpa_supplicant/wpa_gui-qt4/main.cpp
+++ b/
wpa_supplicant/wpa_gui-qt4/main.cpp
@@
-19,6
+19,7
@@
WpaGuiApp::WpaGuiApp(int &argc, char **argv) :
argc(argc),
argv(argv)
{
+ w = NULL;
}
#if !defined(QT_NO_SESSIONMANAGER) && QT_VERSION < 0x050000