Fixed absolute path for downloads

This commit is contained in:
Vysheng 2014-09-29 18:38:06 +04:00
parent b9cf49e96f
commit 3eeeb5d03e

2
main.c
View File

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