Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
weichsel committed Jun 9, 2024
1 parent 6a58e76 commit 7b3dd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ZIPFoundation/Archive+MemoryFile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MemoryFile {
: funopen(cookie.toOpaque(), readStub, nil, seekStub, closeStub)!
#else
let stubs = cookie_io_functions_t(read: readStub, write: writeStub, seek: seekStub, close: closeStub)
let result = fopencookie(cookie.toOpaque(), mode, stubs)
let result = fopencookie(cookie.toOpaque(), mode, stubs)!
#endif
if append {
fseeko(result, 0, SEEK_END)
Expand Down

0 comments on commit 7b3dd0f

Please sign in to comment.