From 6cc97e85489f5e4e39aa185d17ad5e35b09dddb5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 13 Feb 2015 12:16:06 +0100 Subject: Remove pointless return value checks when calling fz_open_file. fz_open_file does not return NULL on failure -- it throws an exception! --- source/cbz/muimg.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/cbz/muimg.c') 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); -- cgit v1.2.3