raster pushed a commit to branch master.

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

commit ed5f83ab0b89e63ae545142a93334a8b56780835
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Feb 11 14:49:23 2014 +0900

    fix probably NULL ic segv cause in efm
    
    this SHOULD fix T933 if i could ever reproduce it...
---
 src/bin/e_fm.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c
index 42bcc9a..744ff01 100644
--- a/src/bin/e_fm.c
+++ b/src/bin/e_fm.c
@@ -6670,7 +6670,7 @@ _e_fm2_cb_dnd_selection_notify(void *data, const char 
*type, void *event)
 {
    E_Fm2_Smart_Data *sd = data;
    E_Event_Dnd_Drop *ev = event;
-   E_Fm2_Icon *ic;
+   E_Fm2_Icon *ic = NULL;
    Eina_List *fsel, *l, *ll, *il, *isel = NULL;
    char buf[PATH_MAX];
    const char *fp;
@@ -6857,8 +6857,7 @@ _e_fm2_cb_dnd_selection_notify(void *data, const char 
*type, void *event)
                     {
                        args = e_util_string_append_char(args, &size, &length, 
' ');
                        if (!args) memerr = EINA_TRUE;
-                       else if (ic)
-                         ic->drag.hidden = EINA_TRUE;
+                       else if (ic) ic->drag.hidden = EINA_TRUE;
                     }
                }
              eina_stringshare_del(fp);

-- 


Reply via email to