summaryrefslogtreecommitdiff
path: root/pdf/pdf_cmap_load.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-23 11:20:16 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-23 11:20:16 +0000
commitcc4dd0f8358d3de1594cc530b8f2691bccf194f0 (patch)
treed1bb840ff369382d6a89553ceb3b23464c806af3 /pdf/pdf_cmap_load.c
parent3145e49a9ce16d45bf4d6bb01c64646f41d70e8f (diff)
downloadmupdf-cc4dd0f8358d3de1594cc530b8f2691bccf194f0.tar.xz
Add some fz_vars to fix exception behaviour.
gcc 4.4.5 gives helpful warnings about variables that can become unset due to setjmp/longjmp usage. Fix that here. Thanks to Sebras.
Diffstat (limited to 'pdf/pdf_cmap_load.c')
-rw-r--r--pdf/pdf_cmap_load.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdf/pdf_cmap_load.c b/pdf/pdf_cmap_load.c
index 5cf70d9e..bcfc61ae 100644
--- a/pdf/pdf_cmap_load.c
+++ b/pdf/pdf_cmap_load.c
@@ -22,11 +22,14 @@ pdf_load_embedded_cmap(pdf_xref *xref, fz_obj *stmobj)
pdf_cmap *cmap = NULL;
pdf_cmap *usecmap;
fz_obj *wmode;
- fz_obj *obj;
+ fz_obj *obj = NULL;
fz_context *ctx = xref->ctx;
int phase = 0;
fz_var(phase);
+ fz_var(obj);
+ fz_var(file);
+ fz_var(cmap);
if ((cmap = fz_find_item(ctx, pdf_free_cmap_imp, stmobj)))
{