mirror of
https://github.com/transmission/transmission
synced 2025-02-23 06:30:38 +00:00
safer implementation of tr_torrentName()
This commit is contained in:
parent
027e3f3066
commit
96aaa41218
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue