stefan pushed a commit to branch master.

commit bdd3e7e8ca01201298b6c130f8d0b498535b2892
Author: Stefan Schmidt <[email protected]>
Date:   Wed Aug 7 14:54:14 2013 +0100

    eeze: Go to next loop iterate if test is NULL.
    
    We would dereference it even if NULL one line later.
    
    CID1039328
---
 src/lib/eeze/eeze_net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/eeze/eeze_net.c b/src/lib/eeze/eeze_net.c
index 8a88264..044c899 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)
 
         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);

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to