1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

(trunk libT) simple fix from jch

This commit is contained in:
Charles Kerr 2009-11-24 15:55:21 +00:00
parent d5ae900e4e
commit d98666e740

View file

@ -580,7 +580,7 @@ tr_metainfoSetFromMagnet( tr_info * inf, const tr_magnet_info * m )
escape( inf->hashEscaped, inf->hash, SHA_DIGEST_LENGTH ); escape( inf->hashEscaped, inf->hash, SHA_DIGEST_LENGTH );
/* name */ /* name */
if( *m->displayName ) if( m->displayName && *m->displayName )
inf->name = tr_strdup( m->displayName ); inf->name = tr_strdup( m->displayName );
else else
inf->name = tr_strdup( inf->hashString ); inf->name = tr_strdup( inf->hashString );