X-Git-Url: http://pilppa.org/gitweb/?p=libplp.git;a=blobdiff_plain;f=src%2Fconfig.c;h=2c746f25da47a0821cf5ffa9952ae46947a6de53;hp=9c479a0e255e70c8dac7c6217849cc6c4d49ca79;hb=0fa52fa51ad87bfb7871956f2cca83434f3bff7e;hpb=97671ad08a864c833fab1b3827e3d91749c0e9d7 diff --git a/src/config.c b/src/config.c index 9c479a0..2c746f2 100644 --- a/src/config.c +++ b/src/config.c @@ -125,7 +125,8 @@ char* get_config_value_and_close(const char *conf_dir_name, ret_val = uci_get_config_value(ctx, pkg, section_name, - key); + key, + &err_flg); // need to duplicate response val, as uci_free_context() would free the value otherwise if (ret_val != NULL) ret_val = strdup(ret_val);