summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-08-07 14:54:14 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-08-07 15:18:18 +0100
commitbdd3e7e8ca01201298b6c130f8d0b498535b2892 (patch)
tree3a83ae44901d4886b03a25084d7e41ad955fd518 /src/lib/eeze
parent144ed4c10c3e73fb35b4a875377d5793e34201ee (diff)
eeze: Go to next loop iterate if test is NULL.
We would dereference it even if NULL one line later. CID1039328
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eeze/eeze_net.c b/src/lib/eeze/eeze_net.c
index 8a8826421d..044c89931e 100644
--- a/src/lib/eeze/eeze_net.c
+++ b/src/lib/eeze/eeze_net.c
@@ -70,6 +70,7 @@ eeze_net_new(const char *name)
70 70
71 devname = udev_list_entry_get_name(cur); 71 devname = udev_list_entry_get_name(cur);
72 test = strrchr(devname, '/'); 72 test = strrchr(devname, '/');
73 if (!test) break;
73 if (strcmp(++test, name)) continue; 74 if (strcmp(++test, name)) continue;
74 device = _new_device(devname); 75 device = _new_device(devname);
75 syspath = eina_stringshare_add(name); 76 syspath = eina_stringshare_add(name);