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>
This commit is contained in:
parent
9482426ede
commit
c660b0c257
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue