From d98666e740a5bbd4822d8f8190093b57a7ec4b44 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 24 Nov 2009 15:55:21 +0000 Subject: [PATCH] (trunk libT) simple fix from jch --- libtransmission/metainfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/metainfo.c b/libtransmission/metainfo.c index ba17054f2..deeed5c57 100644 --- a/libtransmission/metainfo.c +++ b/libtransmission/metainfo.c @@ -580,7 +580,7 @@ tr_metainfoSetFromMagnet( tr_info * inf, const tr_magnet_info * m ) escape( inf->hashEscaped, inf->hash, SHA_DIGEST_LENGTH ); /* name */ - if( *m->displayName ) + if( m->displayName && *m->displayName ) inf->name = tr_strdup( m->displayName ); else inf->name = tr_strdup( inf->hashString );