mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
fix a potential crasher with the displayed (temporary) name
This commit is contained in:
parent
7915b49b03
commit
6c7f3cbb08
1 changed files with 1 additions and 1 deletions
|
@ -614,7 +614,7 @@ int trashDataFile(const char * filename)
|
||||||
|
|
||||||
- (NSString *) name
|
- (NSString *) name
|
||||||
{
|
{
|
||||||
return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]];
|
return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
|
||||||
//return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
|
//return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue