diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-12-29 18:47:30 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-12-29 18:49:08 +0000 |
commit | 7209f8811b61007f999afcb78d4440a805d853f4 (patch) | |
tree | 42aa5b66b86c2a3e38899f1f9bef40c05b455dfd /source | |
parent | d3e295b507a1af10e066d72c386095f9bd8a8623 (diff) | |
download | mupdf-7209f8811b61007f999afcb78d4440a805d853f4.tar.xz |
Fix windows build failure.
C89 code is preferable to gcc code; define variables at the start of
blocks.
Diffstat (limited to 'source')
-rw-r--r-- | source/cbz/mucbz.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 94ef70f5..844613a3 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -175,6 +175,7 @@ cbz_load_page(cbz_document *doc, int number) fz_context *ctx = doc->ctx; unsigned char *data = NULL; cbz_page *page = NULL; + fz_buffer *buf; if (number < 0 || number >= doc->page_count) return NULL; @@ -182,7 +183,7 @@ cbz_load_page(cbz_document *doc, int number) fz_var(data); fz_var(page); - fz_buffer *buf = fz_read_archive_entry(doc->ctx, doc->zip, doc->page[number]); + buf = fz_read_archive_entry(doc->ctx, doc->zip, doc->page[number]); fz_try(ctx) { page = fz_malloc_struct(ctx, cbz_page); |