From a42b08492441108dcaf545cefd4a46e48904333e Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 28 Mar 2010 12:07:04 +0000 Subject: [PATCH] (trunk libT) #3091 "tr_ctorSetDownloadDir() should check for empty string" -- fixed in trunk for 2.00 --- libtransmission/torrent-ctor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/torrent-ctor.c b/libtransmission/torrent-ctor.c index 031cfa04c..a95ffbf6c 100644 --- a/libtransmission/torrent-ctor.c +++ b/libtransmission/torrent-ctor.c @@ -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 );