forked from enlightenment/efl
eeze: Go to next loop iterate if test is NULL.
We would dereference it even if NULL one line later. CID1039328
This commit is contained in:
parent
144ed4c10c
commit
bdd3e7e8ca
|
@ -70,6 +70,7 @@ eeze_net_new(const char *name)
|
||||||
|
|
||||||
devname = udev_list_entry_get_name(cur);
|
devname = udev_list_entry_get_name(cur);
|
||||||
test = strrchr(devname, '/');
|
test = strrchr(devname, '/');
|
||||||
|
if (!test) break;
|
||||||
if (strcmp(++test, name)) continue;
|
if (strcmp(++test, name)) continue;
|
||||||
device = _new_device(devname);
|
device = _new_device(devname);
|
||||||
syspath = eina_stringshare_add(name);
|
syspath = eina_stringshare_add(name);
|
||||||
|
|
Loading…
Reference in New Issue