1
0
Fork 0
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:
Mitchell Livingston 2011-08-05 02:20:17 +00:00
parent 7915b49b03
commit 6c7f3cbb08

View file

@ -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;
} }