projects
/
wpasupplicant
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eba45c
)
Use NULL, not 0, when comparing a pointer
author
Jouni Malinen
<j@w1.fi>
Sat, 3 Jan 2009 19:01:20 +0000
(21:01 +0200)
committer
Jouni Malinen
<j@w1.fi>
Sat, 3 Jan 2009 19:01:20 +0000
(21:01 +0200)
wpa_supplicant/ctrl_iface_dbus_handlers.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/ctrl_iface_dbus_handlers.c
b/wpa_supplicant/ctrl_iface_dbus_handlers.c
index
0cb558e
..
3c29804
100644
(file)
--- 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 "