Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        e_mod_config.c 


Log Message:
Fix segfault on new config where filename was not set and a
evas_stringshare_del was called on it.

===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_config.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- e_mod_config.c      13 Jun 2006 01:25:49 -0000      1.23
+++ e_mod_config.c      26 Jun 2006 15:11:01 -0000      1.24
@@ -199,12 +199,10 @@
         ci->location = evas_stringshare_add(tmp);
      }
 
-   evas_stringshare_del(ci->filename);
+   if (ci->filename)
+     evas_stringshare_del(ci->filename);
    if (cfdata->filename != NULL) 
-     {
-//     cfdata->filename = ecore_file_strip_ext(cfdata->filename);
-       ci->filename = evas_stringshare_add(cfdata->filename); 
-     }
+     ci->filename = evas_stringshare_add(cfdata->filename); 
    else
      ci->filename = evas_stringshare_add("");
 



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to