Browse Source

dbus: Remove unused default string for bridge_ifname

wpa_s->bridge_ifname is an array and cannot be NULL.

Signed-hostap: Jouni Malinen <j@w1.fi>
Jouni Malinen 13 years ago
parent
commit
c660b0c257
1 changed files with 1 additions and 3 deletions
  1. 1 3
      wpa_supplicant/dbus/dbus_new_handlers.c

+ 1 - 3
wpa_supplicant/dbus/dbus_new_handlers.c

@@ -2490,9 +2490,7 @@ dbus_bool_t wpas_dbus_getter_bridge_ifname(DBusMessageIter *iter,
 					   void *user_data)
 {
 	struct wpa_supplicant *wpa_s = user_data;
-	const char *bridge_ifname;
-
-	bridge_ifname = wpa_s->bridge_ifname ? wpa_s->bridge_ifname : "";
+	const char *bridge_ifname = wpa_s->bridge_ifname;
 	return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_STRING,
 						&bridge_ifname, error);
 }