Commit 3eeeb5d0 authored by Vysheng's avatar Vysheng

Fixed absolute path for downloads

parent b9cf49e9
...@@ -283,7 +283,7 @@ void parse_config_val (config_t *conf, char **s, char *param_name, const char *d ...@@ -283,7 +283,7 @@ void parse_config_val (config_t *conf, char **s, char *param_name, const char *d
strcpy (buf + l, param_name); strcpy (buf + l, param_name);
config_lookup_string (conf, buf, &r); config_lookup_string (conf, buf, &r);
if (r) { if (r) {
if (path) { if (path && *r != '/') {
tasprintf (s, "%s/%s", path, r); tasprintf (s, "%s/%s", path, r);
} else { } else {
*s = tstrdup (r); *s = tstrdup (r);
......
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