1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 14:10:34 +00:00

(trunk libT) #3091 "tr_ctorSetDownloadDir() should check for empty string" -- fixed in trunk for 2.00

This commit is contained in:
Charles Kerr 2010-03-28 12:07:04 +00:00
parent 115e763ac7
commit a42b084924

View file

@ -321,7 +321,7 @@ tr_ctorSetDownloadDir( tr_ctor * ctor,
args->downloadDir = NULL;
args->isSet_downloadDir = 0;
if( directory )
if( directory && *directory )
{
args->isSet_downloadDir = 1;
args->downloadDir = tr_strdup( directory );