diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 4a3e94d14..ed6dbe7fb 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -74,9 +74,7 @@ const char * tr_torrentName (const tr_torrent * tor) { - assert (tr_isTorrent (tor)); - - return tor->info.name; + return tor ? tor->info.name : ""; } int