englebass pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=06a85fca4d37bc37337a682f62f1c783ecb4a7c0

commit 06a85fca4d37bc37337a682f62f1c783ecb4a7c0
Author: Sebastian Dransfeld <s...@tango.flipp.net>
Date:   Tue Dec 10 20:35:45 2013 +0100

    e: check for NULL value in parameter
    
    CID 1040146
---
 src/bin/e_container.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/e_container.c b/src/bin/e_container.c
index 9279879..636fef7 100644
--- a/src/bin/e_container.c
+++ b/src/bin/e_container.c
@@ -309,6 +309,7 @@ e_container_desk_window_profile_get(E_Container *con,
 
    E_OBJECT_CHECK_RETURN(con, NULL);
    E_OBJECT_TYPE_CHECK_RETURN(con, E_CONTAINER_TYPE, NULL);
+   if (!profile) return NULL;
 
    EINA_LIST_FOREACH(con->zones, l, zone)
      {

-- 


Reply via email to