commit | 962975672c2127eab7e56751e6ad38d4a18569df | [log] [tgz] |
---|---|---|
author | Dean Ellis <dellis1972@googlemail.com> | Wed Aug 05 13:54:44 2020 +0100 |
committer | Dean Ellis <dellis1972@googlemail.com> | Wed Aug 05 13:54:44 2020 +0100 |
tree | 87980cf59792205e3b00ff24a47983ef4bf0107a | |
parent | c55cf12cec53a5ef519f98dfd11f4cb00e9ac0f1 [diff] |
Add missing NULL check in zip_stat_index.
diff --git a/lib/zip_stat_index.c b/lib/zip_stat_index.c index 0f8bead..62dc045 100644 --- a/lib/zip_stat_index.c +++ b/lib/zip_stat_index.c
@@ -55,7 +55,7 @@ return -1; } - if (entry->changes->changed & ZIP_DIRENT_LAST_MOD) { + if (entry->changes != NULL && entry->changes->changed & ZIP_DIRENT_LAST_MOD) { st->mtime = de->last_mod; st->valid |= ZIP_STAT_MTIME; }