commit | 319e640bc0caedb8695f8c060c72472174fa1970 | [log] [tgz] |
---|---|---|
author | Dieter Baron <dillo@nih.at> | Wed Aug 05 17:15:08 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed Aug 05 17:15:08 2020 +0200 |
tree | 87980cf59792205e3b00ff24a47983ef4bf0107a | |
parent | c55cf12cec53a5ef519f98dfd11f4cb00e9ac0f1 [diff] | |
parent | 962975672c2127eab7e56751e6ad38d4a18569df [diff] |
Merge pull request #202 from infinitespace-studios/fixnullbug 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; }