From 21db988e18c514fb0014b86d3a4a0553c096d7b7 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Fri, 5 Sep 2008 06:43:26 +0200 Subject: [PATCH] remove the default return in case an illegal config entry was found Fallback to a default in case of a already pending error is not needed. This would only obtruse error handling. If the default entry would be erroneous it would be silently ignored and make the thing worse. --- src/backend/config_typed.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/config_typed.c b/src/backend/config_typed.c index 02e75d0db..07c2bb486 100644 --- a/src/backend/config_typed.c +++ b/src/backend/config_typed.c @@ -80,9 +80,6 @@ lumiera_config_number_get (const char* key, long long* value) else { LUMIERA_ERROR_SET (config_typed, CONFIG_SYNTAX_VALUE); - /* try default instead */ - if (!lumiera_config_get_default (key, &raw_value)) - sscanf (raw_value, "%Li", value); } } else