diff options
author | Pekka Pessi <pekka.pessi@nokia.com> | 2010-10-01 17:38:19 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2010-10-01 17:38:40 +0300 |
commit | 951cf0eaef80cf9d8413c1944bafc46d869613e0 (patch) | |
tree | 5d85c3f49dddd862f22c2aeb5dcfebb558b13a26 | |
parent | 29bbf89c52020023f8ac0f376b8f7af81df0b610 (diff) | |
download | ofono-951cf0eaef80cf9d8413c1944bafc46d869613e0.tar.bz2 |
udev: Fix ISI address setting
-rw-r--r-- | plugins/udev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/udev.c b/plugins/udev.c index 211e9646..85c05675 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -436,7 +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"); - ofono_modem_set_integer(modem, "Address", atoi(addr)); + if (addr) + ofono_modem_set_integer(modem, "Address", atoi(addr)); ofono_modem_register(modem); } |