fix null dereference reported by clang, patch by Luis Felipe.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jan 2009 19:05:11 +0000 (19:05 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jan 2009 19:05:11 +0000 (19:05 +0000)
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

index b6d52ed..98039d7 100644 (file)
@@ -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)))
      {