Skip to content

Commit 602c224

Browse files
committed
Fix uncompressed export causing a crash (issue introduced by me 2 commits ago in 1dedadc)
1 parent 71c013d commit 602c224

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/SPFileHandle.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ - (id)initWithFile:(FILE *)theFile fromPath:(const char *)path mode:(int)mode
145145
}
146146
// In write mode, set up a thread to handle writing in the background
147147
else if (fileMode == O_WRONLY) {
148+
wrappedFile->file = theFile; // can be changed later via setCompressionFormat:
148149
processingThread = [[NSThread alloc] initWithTarget:self selector:@selector(_writeBufferToData) object:nil];
149150
[processingThread setName:@"SPFileHandle data writing thread"];
150151
[processingThread start];

0 commit comments

Comments
 (0)