Commit d569d658 authored by José Manuel's avatar José Manuel

Fixed issue with address sanitizer

parent 915876fa
...@@ -192,7 +192,8 @@ public class Zip { ...@@ -192,7 +192,8 @@ public class Zip {
} }
} }
fclose(filePointer) if let fp = filePointer { fclose(fp) }
crc_ret = unzCloseCurrentFile(zip) crc_ret = unzCloseCurrentFile(zip)
if crc_ret == UNZ_CRCERROR { if crc_ret == UNZ_CRCERROR {
throw ZipError.unzipFail throw ZipError.unzipFail
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment