Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        e_mod_config.c 


Log Message:
Check that these config values exist before trying to stringshare_del them
or else E segfaults :(

===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_config.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- e_mod_config.c      1 Jul 2006 19:53:51 -0000       1.25
+++ e_mod_config.c      2 Jul 2006 15:18:22 -0000       1.26
@@ -188,7 +188,8 @@
         ci->use_import = 0;
      }
 
-   evas_stringshare_del(ci->location);
+   if (ci->location)
+     evas_stringshare_del(ci->location);
    if (cfdata->location == NULL)
      ci->location = evas_stringshare_add(e_user_homedir_get());
    else
@@ -199,7 +200,8 @@
         ci->location = evas_stringshare_add(tmp);
      }
 
-   evas_stringshare_del(ci->filename);
+   if (ci->filename)
+     evas_stringshare_del(ci->filename);
    if (cfdata->filename != NULL) 
      ci->filename = evas_stringshare_add(cfdata->filename); 
 



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