diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2021-03-20 16:29:08 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2021-03-20 16:33:12 -0400 |
commit | ff591ab004afd4451049f5c10b7c183ecf00c715 (patch) | |
tree | a6471d2cbe3a3e0007cf08d70437f2bf57044c92 /src/conf.c | |
parent | b8895d0cea59a5fbed523a91f34c963b752acdb4 (diff) |
remove predefined_conf_d
This is not used anywhere. And there is no need to have a full
dictionary for that either. If necessary the original value could
still be retrieved from the default-config array.
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -42,7 +42,7 @@ * \brief Configuration functions * * \details This file contains functions that operate on the user's configuration - * dictionary (user_conf_d) and the predefined dictionary (predefined_conf_d). + * dictionary (user_conf_d). */ #include <stdlib.h> @@ -167,10 +167,5 @@ char * get_conf_values(char * salida) { // argument rather than using user_conf_d directly. char * get_conf_value(char * key) { - char * val = get(user_conf_d, key); - - if (val == NULL || val[0] == '\0') - return get(predefined_conf_d, key); - else - return val; + return get(user_conf_d, key); } |