D-Bus: Avoid compiler warning on sometimes uninitialized variable
authorJouni Malinen <j@w1.fi>
Wed, 31 Dec 2014 14:33:35 +0000 (16:33 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:48:30 +0000 (22:48 +0200)
commit19d4dab759126b5e044fe845da8cca95a28e81c8
tree378f392891bec64dcb77209f609201fd4cf0c91e
parentbc7baaff24b179b7e52bb7ef6c2a816566828faa
D-Bus: Avoid compiler warning on sometimes uninitialized variable

The logic in wpas_dbus_signal_p2p_provision_discovery() seemed to imply
that there could be a case where _signal would be used uninitized. While
that is not the case since either (request || !status) or (!request &&
status) would always be true, some compilers do not seem to be clever
enough to figure that out to avoid the warning. Make this easier for
such compilers by removing the (!request && status) condition since it
is identical to !(request || !status).

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/dbus/dbus_new.c