1
0
Fork 0
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:
Jordan Lee 2012-12-26 23:44:33 +00:00
parent d4ab5d299f
commit ac17884741

View file

@ -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);
} }