englebass pushed a commit to branch master.

commit 9707fee0515f174c18ea69941bde6395eb67a990
Author: Sebastian Dransfeld <[email protected]>
Date:   Wed Aug 7 10:59:05 2013 +0200

    efreet: Check return value of eet_list
    
    CID: #1039327
---
 src/lib/efreet/efreet_cache.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/efreet/efreet_cache.c b/src/lib/efreet/efreet_cache.c
index 14442be..6185905 100644
--- a/src/lib/efreet/efreet_cache.c
+++ b/src/lib/efreet/efreet_cache.c
@@ -762,6 +762,7 @@ efreet_cache_icon_theme_list(void)
 
     if (!efreet_cache_check(&icon_theme_cache, efreet_icon_theme_cache_file(), 
EFREET_ICON_CACHE_MAJOR)) return NULL;
     keys = eet_list(icon_theme_cache, "*", &num);
+    if (!keys) return NULL;
     for (i = 0; i < num; i++)
     {
         Efreet_Icon_Theme *theme;

-- 

------------------------------------------------------------------------------
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