summaryrefslogtreecommitdiff
path: root/source/cbz/mucbz.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-12-29 18:47:30 +0000
committerRobin Watts <robin.watts@artifex.com>2014-12-29 18:49:08 +0000
commit7209f8811b61007f999afcb78d4440a805d853f4 (patch)
tree42aa5b66b86c2a3e38899f1f9bef40c05b455dfd /source/cbz/mucbz.c
parentd3e295b507a1af10e066d72c386095f9bd8a8623 (diff)
downloadmupdf-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/cbz/mucbz.c')
-rw-r--r--source/cbz/mucbz.c3
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);