Commit 507c2c42 authored by Jonathan Jenkins's avatar Jonathan Jenkins

fixed silent error on config fn

parent 480915e1
......@@ -123,11 +123,13 @@ int configuration_get_value_relpath(
size_t length){
char *tmp = malloc(length);
configuration_get_value(handle, section_name, key_name, annotation, tmp,
int w = configuration_get_value(handle, section_name, key_name, annotation, tmp,
length);
if (w <= 0)
return w;
/* concat the configuration value with the directory */
int w = snprintf(value, length, "%s/%s", (*handle)->config_dir, tmp);
w = snprintf(value, length, "%s/%s", (*handle)->config_dir, tmp);
free(tmp);
return w;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment