Skip to content

Commit

Permalink
kram - fix zip helper
Browse files Browse the repository at this point in the history
  • Loading branch information
alecazam committed Mar 15, 2024
1 parent 6c36e1b commit de06d29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kram-profile/Source/KramZipHelperW.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ - (ZipEntryW)zipEntry:(NSInteger)index {
- (ZipEntryW)zipEntryByName:(nonnull const char*)name {
// TODO: fix to return a dummy type, since zips can be missing files
// from one iteration to the next.
static ZipEntry nilEntry = {};
ZipEntry* entry = _helper.zipEntry(name);
static ZipEntryW nilEntry = {};
const ZipEntry* entry = _helper.zipEntry(name);
if (entry) {
return *(const ZipEntryW*)entry;
}
else {
return (ZipEntryW&)nilEntry;
return nilEntry;
}
}

Expand Down

0 comments on commit de06d29

Please sign in to comment.