From 6c7f3cbb08ceedb4c375a44e335526aee9a627f6 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 5 Aug 2011 02:20:17 +0000 Subject: [PATCH] fix a potential crasher with the displayed (temporary) name --- macosx/Torrent.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 9a8de6d64..9788b5fa6 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -614,7 +614,7 @@ int trashDataFile(const char * filename) - (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; }