Skip to content

Commit 319e640

Browse files
authored
Merge pull request #202 from infinitespace-studios/fixnullbug
Add missing NULL check in zip_stat_index.
2 parents c55cf12 + 9629756 commit 319e640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/zip_stat_index.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ zip_stat_index(zip_t *za, zip_uint64_t index, zip_flags_t flags, zip_stat_t *st)
5555
return -1;
5656
}
5757

58-
if (entry->changes->changed & ZIP_DIRENT_LAST_MOD) {
58+
if (entry->changes != NULL && entry->changes->changed & ZIP_DIRENT_LAST_MOD) {
5959
st->mtime = de->last_mod;
6060
st->valid |= ZIP_STAT_MTIME;
6161
}

0 commit comments

Comments
 (0)