summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/udev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/udev.c b/plugins/udev.c
index 85c05675..3c2c09c0 100644
--- a/plugins/udev.c
+++ b/plugins/udev.c
@@ -436,8 +436,8 @@ static void add_isi(struct ofono_modem *modem,
DBG("interface %s", ifname);
addr = udev_device_get_property_value(udev_device, "OFONO_ISI_ADDRESS");
- if (addr)
- ofono_modem_set_integer(modem, "Address", atoi(addr));
+ if (addr != NULL)
+ ofono_modem_set_integer(modem, "Address", atoi(addr));
ofono_modem_register(modem);
}