mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(trunk, libT) #5184 'Transmission 2.73 keeps creating a directory called /home/charles' -- fixed.
This commit is contained in:
parent
d4ab5d299f
commit
ac17884741
1 changed files with 2 additions and 0 deletions
|
@ -502,6 +502,8 @@ tr_getDefaultDownloadDir (void)
|
||||||
|
|
||||||
if (!memcmp (value, "$HOME/", 6))
|
if (!memcmp (value, "$HOME/", 6))
|
||||||
user_dir = tr_buildPath (getHomeDir (), value+6, NULL);
|
user_dir = tr_buildPath (getHomeDir (), value+6, NULL);
|
||||||
|
else if (!strcmp (value, "$HOME"))
|
||||||
|
user_dir = tr_strdup (getHomeDir ());
|
||||||
else
|
else
|
||||||
user_dir = tr_strdup (value);
|
user_dir = tr_strdup (value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue