diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-02-13 12:16:06 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 18:06:11 +0100 |
commit | 6cc97e85489f5e4e39aa185d17ad5e35b09dddb5 (patch) | |
tree | 336b711593d85f80d89da363d1ae269dcdf9b159 /source/fitz/unzip.c | |
parent | f84a189d5f94250e46d2cbd1a75aba00130e2dd6 (diff) | |
download | mupdf-6cc97e85489f5e4e39aa185d17ad5e35b09dddb5.tar.xz |
Remove pointless return value checks when calling fz_open_file.
fz_open_file does not return NULL on failure -- it throws an exception!
Diffstat (limited to 'source/fitz/unzip.c')
-rw-r--r-- | source/fitz/unzip.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/fitz/unzip.c b/source/fitz/unzip.c index 8c8a6ba3..23028d42 100644 --- a/source/fitz/unzip.c +++ b/source/fitz/unzip.c @@ -504,18 +504,13 @@ fz_open_archive(fz_context *ctx, const char *filename) fz_archive *zip; file = fz_open_file(ctx, filename); + fz_try(ctx) - { zip = fz_open_archive_with_stream(ctx, file); - } fz_always(ctx) - { fz_drop_stream(ctx, file); - } fz_catch(ctx) - { fz_rethrow(ctx); - } return zip; } |