diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-15 01:55:05 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-18 21:32:14 +0800 |
commit | ce82537df9e4b832213138d942be4482418b9e50 (patch) | |
tree | 77745cba1b3c7ffaca9db4876e20993fc0495801 /source/fitz/zip.c | |
parent | 23ac569165b66403abfe72e89007675ceaa9bde0 (diff) | |
download | mupdf-ce82537df9e4b832213138d942be4482418b9e50.tar.xz |
All external drop functions handles NULL.
Diffstat (limited to 'source/fitz/zip.c')
-rw-r--r-- | source/fitz/zip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/zip.c b/source/fitz/zip.c index 599d2954..95f1bd03 100644 --- a/source/fitz/zip.c +++ b/source/fitz/zip.c @@ -87,6 +87,8 @@ fz_close_zip_writer(fz_context *ctx, fz_zip_writer *zip) void fz_drop_zip_writer(fz_context *ctx, fz_zip_writer *zip) { + if (!zip) + return; if (!zip->closed) fz_warn(ctx, "dropping unclosed zip writer"); fz_drop_output(ctx, zip->output); |