Commit e239ac30 authored by Jonathan Jenkins's avatar Jonathan Jenkins Committed by Misbah Mubarak

fixed silent error on config fn

parent ac0f130e
...@@ -123,11 +123,13 @@ int configuration_get_value_relpath( ...@@ -123,11 +123,13 @@ int configuration_get_value_relpath(
size_t length){ size_t length){
char *tmp = malloc(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); length);
if (w <= 0)
return w;
/* concat the configuration value with the directory */ /* 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); free(tmp);
return w; 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