Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config
Modified Files:
ecore_config.c
Log Message:
Prevent a SEGV if returned config string is NULL
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- ecore_config.c 18 Sep 2005 12:25:57 -0000 1.62
+++ ecore_config.c 21 Oct 2005 12:11:37 -0000 1.63
@@ -167,7 +167,7 @@
Ecore_Config_Prop *e;
e = ecore_config_get(key);
- return (e && (e->type == ECORE_CONFIG_STR)) ? strdup(e->ptr) : NULL;
+ return (e && (e->type == ECORE_CONFIG_STR) && e->ptr) ? strdup(e->ptr) :
NULL;
}
/**
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs