aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_old_handlers.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-06-23 18:14:30 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-23 18:16:35 (GMT)
commit8e2a3a4c21ce6b1fb1d440333de7a9718e755005 (patch)
tree1cff60e0a01bd9e69ab04b4709db0d406c7ea25e /wpa_supplicant/dbus/dbus_old_handlers.c
parentc1a14ef42f1decf308133a133aa1cd429093fdec (diff)
downloadhostap-8e2a3a4c21ce6b1fb1d440333de7a9718e755005.zip
hostap-8e2a3a4c21ce6b1fb1d440333de7a9718e755005.tar.gz
hostap-8e2a3a4c21ce6b1fb1d440333de7a9718e755005.tar.bz2
dbus: Do not initialize variable twice
There is no point in initializing 'success' to FALSE when the actual value is set just below this. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_old_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_old_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_old_handlers.c b/wpa_supplicant/dbus/dbus_old_handlers.c
index 20442d6..462c713 100644
--- a/wpa_supplicant/dbus/dbus_old_handlers.c
+++ b/wpa_supplicant/dbus/dbus_old_handlers.c
@@ -500,7 +500,7 @@ DBusMessage * wpas_dbus_iface_capabilities(DBusMessage *message,
/* EAP methods */
eap_methods = eap_get_names_as_string_array(&num_items);
if (eap_methods) {
- dbus_bool_t success = FALSE;
+ dbus_bool_t success;
size_t i = 0;
success = wpa_dbus_dict_append_string_array(