From 602c224a4084c5cb804e1f30c7b4fe5fe068d91b Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 8 Oct 2015 22:18:18 +0200 Subject: Fix uncompressed export causing a crash (issue introduced by me 2 commits ago in 1dedadcaba2cd474a251a24d893dc3b7b2a719a7) --- Source/SPFileHandle.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/SPFileHandle.m b/Source/SPFileHandle.m index 3e0489a4..49bcd4a4 100644 --- a/Source/SPFileHandle.m +++ b/Source/SPFileHandle.m @@ -145,6 +145,7 @@ union SPSomeFileHandle { } // In write mode, set up a thread to handle writing in the background else if (fileMode == O_WRONLY) { + wrappedFile->file = theFile; // can be changed later via setCompressionFormat: processingThread = [[NSThread alloc] initWithTarget:self selector:@selector(_writeBufferToData) object:nil]; [processingThread setName:@"SPFileHandle data writing thread"]; [processingThread start]; -- cgit v1.2.3