Changeset 14078


Ignore:
Timestamp:
May 22, 2013, 10:56:13 PM (9 years ago)
Author:
jordan
Message:

safer implementation of tr_torrentName()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r14077 r14078  
    7575tr_torrentName (const tr_torrent * tor)
    7676{
    77     assert (tr_isTorrent (tor));
    78 
    79     return tor->info.name;
     77    return tor ? tor->info.name : "";
    8078}
    8179
Note: See TracChangeset for help on using the changeset viewer.