Prevent a SEGV if returned config string is NULL

SVN revision: 17735
This commit is contained in:
lordchaos 2005-10-21 12:11:37 +00:00 committed by lordchaos
parent 4667f645da
commit 7de1083877
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**