mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(trunk libT) simple fix from jch
This commit is contained in:
parent
d5ae900e4e
commit
d98666e740
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue