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/cbz/mucbz.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/cbz/mucbz.c')
-rw-r--r-- | source/cbz/mucbz.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 75148490..8ea782aa 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -230,8 +230,6 @@ cbz_open_document(fz_context *ctx, const char *filename) cbz_document *doc; file = fz_open_file(ctx, filename); - if (!file) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot open file '%s': %s", filename, strerror(errno)); fz_try(ctx) doc = cbz_open_document_with_stream(ctx, file); |