From e3e9a48c9a03d7e35c63ba8c702aa9e52db639fa Mon Sep 17 00:00:00 2001 From: handyande Date: Sun, 2 Jan 2005 21:51:13 +0000 Subject: [PATCH] Allow null strings SVN revision: 12693 --- legacy/ecore/src/lib/ecore_config/ecore_config.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_config/ecore_config.c b/legacy/ecore/src/lib/ecore_config/ecore_config.c index c87066b..aeec796 100644 --- a/legacy/ecore/src/lib/ecore_config/ecore_config.c +++ b/legacy/ecore/src/lib/ecore_config/ecore_config.c @@ -564,9 +564,7 @@ ecore_config_typed_add(const char *key, void *val, int type) if (!(e->key = strdup(key))) goto ret_free_nte; - if (!val) - e->type = PT_NIL; - else if (ecore_config_typed_val(e, val, type) == ECORE_CONFIG_ERR_OOM) + if (ecore_config_typed_val(e, val, type) == ECORE_CONFIG_ERR_OOM) goto ret_free_key; e->next = t ? t->data : NULL; -- 2.7.4