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:
Stefan Schmidt 2013-08-07 14:54:14 +01:00
parent 144ed4c10c
commit bdd3e7e8ca
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ eeze_net_new(const char *name)
devname = udev_list_entry_get_name(cur);
test = strrchr(devname, '/');
if (!test) break;
if (strcmp(++test, name)) continue;
device = _new_device(devname);
syspath = eina_stringshare_add(name);