diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-09-08 13:38:30 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-13 21:59:18 +0800 |
commit | bf8e4dea8d41e67ea502efb9bc9fcbf3400a0da5 (patch) | |
tree | 61e6ce590aff1c228c05d1e9e4010ec774296295 /source | |
parent | ff5f8814a54bd52bda4b8b5bcaef65e66bcaaaef (diff) | |
download | mupdf-bf8e4dea8d41e67ea502efb9bc9fcbf3400a0da5.tar.xz |
Fix compiler warning.
Diffstat (limited to 'source')
-rw-r--r-- | source/cbz/mucbz.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 8baea04f..4cfb5ed6 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -87,13 +87,8 @@ cbz_create_page_list(fz_context *ctx, cbz_document *doc) { for (k = 0; cbz_ext_list[k]; k++) { - const char *name; - const char *ext; - - if (arch) - name = fz_list_archive_entry(ctx, arch, i); - - ext = name ? strrchr(name, '.') : NULL; + const char *name = fz_list_archive_entry(ctx, arch, i); + const char *ext = name ? strrchr(name, '.') : NULL; if (ext && !fz_strcasecmp(ext, cbz_ext_list[k])) { doc->page[doc->page_count++] = name; |