From 7de10838774cb723aa5805330168a172147eda19 Mon Sep 17 00:00:00 2001 From: lordchaos Date: Fri, 21 Oct 2005 12:11:37 +0000 Subject: [PATCH] Prevent a SEGV if returned config string is NULL SVN revision: 17735 --- legacy/ecore/src/lib/ecore_config/ecore_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config.c b/legacy/ecore/src/lib/ecore_config/ecore_config.c index d7f83f29f3..f3f0a3c8de 100644 --- a/legacy/ecore/src/lib/ecore_config/ecore_config.c +++ b/legacy/ecore/src/lib/ecore_config/ecore_config.c @@ -167,7 +167,7 @@ ecore_config_string_get(const char *key) 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; } /**