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:
parent
115e763ac7
commit
a42b084924
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue