diff options
Diffstat (limited to 'src/Common/libzip/zip_source_rollback_write.c')
-rw-r--r-- | src/Common/libzip/zip_source_rollback_write.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/libzip/zip_source_rollback_write.c b/src/Common/libzip/zip_source_rollback_write.c index 13aa097b..ea1a1510 100644 --- a/src/Common/libzip/zip_source_rollback_write.c +++ b/src/Common/libzip/zip_source_rollback_write.c @@ -37,6 +37,10 @@ ZIP_EXTERN void zip_source_rollback_write(zip_source_t *src) { + if (ZIP_SOURCE_IS_LAYERED(src)) { + return; + } + if (src->write_state != ZIP_SOURCE_WRITE_OPEN && src->write_state != ZIP_SOURCE_WRITE_FAILED) { return; } |