mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
Use NULL, not 0, when comparing a pointer
This commit is contained in:
parent
2eba45c8de
commit
dcc03dbe78
@ -153,7 +153,7 @@ DBusMessage * wpas_dbus_global_add_interface(DBusMessage *message,
|
|||||||
* Try to get the wpa_supplicant record for this iface, return
|
* Try to get the wpa_supplicant record for this iface, return
|
||||||
* an error if we already control it.
|
* 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,
|
reply = dbus_message_new_error(message,
|
||||||
WPAS_ERROR_EXISTS_ERROR,
|
WPAS_ERROR_EXISTS_ERROR,
|
||||||
"wpa_supplicant already "
|
"wpa_supplicant already "
|
||||||
|
Loading…
Reference in New Issue
Block a user