diff options
Diffstat (limited to 'extensions/source/macosx/spotlight')
-rw-r--r-- | extensions/source/macosx/spotlight/OOoSpotlightImporter.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m index 07e19332060a..a144fe259562 100644 --- a/extensions/source/macosx/spotlight/OOoSpotlightImporter.m +++ b/extensions/source/macosx/spotlight/OOoSpotlightImporter.m @@ -86,6 +86,8 @@ static unsigned char readByte(NSFileHandle *file) if (tmpBuf == nil) return 0; unsigned char *d = (unsigned char*)[tmpBuf bytes]; + if (d == nil) + return 0; return *d; } @@ -391,7 +393,7 @@ static NSData *getUncompressedData(NSFileHandle *file, NSString *name) if (unzipFile == nil) { //NSLog(@"zip file not open"); - return YES; + return NO; } //first get the metadata |