Overview
Comment: | OFZIP: Do not try to open archive if path is nil |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4ac59d558bff5176d5213dab6e17c449 |
User & Date: | js on 2016-05-16 13:47:56 |
Other Links: | manifest | tags |
Context
2016-05-21
| ||
21:11 | Fix super lookup of missing methods on MIPS64 check-in: c4f88f560a user: js tags: trunk | |
2016-05-16
| ||
13:47 | OFZIP: Do not try to open archive if path is nil check-in: 4ac59d558b user: js tags: trunk | |
13:44 | OFZIP: Add a mode for printing files check-in: fed68f8fd5 user: js tags: trunk | |
Changes
Modified utils/ofzip/OFZIP.m from [c9180070ce] to [3d1c32bca2].
︙ | ︙ | |||
224 225 226 227 228 229 230 231 232 233 234 235 236 237 | - (id <Archive>)openArchiveWithPath: (OFString*)path { OFFile *file = nil; id <Archive> archive = nil; [_archivePath release]; _archivePath = [path copy]; @try { file = [OFFile fileWithPath: path mode: @"rb"]; } @catch (OFOpenItemFailedException *e) { [of_stderr writeFormat: @"Failed to open file %@: %s\n", [e path], strerror([e errNo])]; | > > > | 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | - (id <Archive>)openArchiveWithPath: (OFString*)path { OFFile *file = nil; id <Archive> archive = nil; [_archivePath release]; _archivePath = [path copy]; if (path == nil) return nil; @try { file = [OFFile fileWithPath: path mode: @"rb"]; } @catch (OFOpenItemFailedException *e) { [of_stderr writeFormat: @"Failed to open file %@: %s\n", [e path], strerror([e errNo])]; |
︙ | ︙ |