diff options
author | Jouni Malinen <j@w1.fi> | 2009-01-03 21:01:20 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-01-03 21:01:20 +0200 |
commit | dcc03dbe78ebf94e53de6d797a2308af0e7820d3 (patch) | |
tree | 337372e3efd96def7d98aa4b57bd009239d47a49 /wpa_supplicant | |
parent | 2eba45c8de1a22a419b12a815d5beae82bd80fad (diff) | |
download | external_wpa_supplicant_8_ti-dcc03dbe78ebf94e53de6d797a2308af0e7820d3.zip external_wpa_supplicant_8_ti-dcc03dbe78ebf94e53de6d797a2308af0e7820d3.tar.gz external_wpa_supplicant_8_ti-dcc03dbe78ebf94e53de6d797a2308af0e7820d3.tar.bz2 |
Use NULL, not 0, when comparing a pointer
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/ctrl_iface_dbus_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface_dbus_handlers.c b/wpa_supplicant/ctrl_iface_dbus_handlers.c index 0cb558e..3c29804 100644 --- a/wpa_supplicant/ctrl_iface_dbus_handlers.c +++ b/wpa_supplicant/ctrl_iface_dbus_handlers.c @@ -153,7 +153,7 @@ DBusMessage * wpas_dbus_global_add_interface(DBusMessage *message, * Try to get the wpa_supplicant record for this iface, return * an error if we already control it. */ - if (wpa_supplicant_get_iface(global, iface.ifname) != 0) { + if (wpa_supplicant_get_iface(global, iface.ifname) != NULL) { reply = dbus_message_new_error(message, WPAS_ERROR_EXISTS_ERROR, "wpa_supplicant already " |