(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
1 changed files with 1 additions and 1 deletions

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