From 58c2815ba7b651c9a93d30c743abc8498201c51b Mon Sep 17 00:00:00 2001 From: barbieri Date: Wed, 21 Jan 2009 19:05:11 +0000 Subject: [PATCH] fix null dereference reported by clang, patch by Luis Felipe. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@38685 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_config/ecore_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_config/ecore_config.c b/src/lib/ecore_config/ecore_config.c index b6d52ed..98039d7 100644 --- a/src/lib/ecore_config/ecore_config.c +++ b/src/lib/ecore_config/ecore_config.c @@ -528,7 +528,7 @@ ecore_config_typed_add(const char *key, const void *val, int type) if (!(e = calloc(1, sizeof(Ecore_Config_Prop)))) { - error = ECORE_CONFIG_ERR_OOM; + return ECORE_CONFIG_ERR_OOM; } else if (!(e->key = strdup(key))) { -- 2.7.4