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.
This commit is contained in:
parent
b6e3650f62
commit
21db988e18
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue