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/muimg.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/muimg.c')
-rw-r--r-- | source/cbz/muimg.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/cbz/muimg.c b/source/cbz/muimg.c index a288a4f4..0680c15a 100644 --- a/source/cbz/muimg.c +++ b/source/cbz/muimg.c @@ -145,8 +145,6 @@ img_open_document(fz_context *ctx, const char *filename) img_document *doc; stm = fz_open_file(ctx, filename); - if (!stm) - fz_throw(ctx, FZ_ERROR_GENERIC, "cannot open file '%s': %s", filename, strerror(errno)); fz_try(ctx) doc = img_open_document_with_stream(ctx, stm); |