ref: d264e8daa8c30ea3d4d43e287bcc97462f244e9e
parent: 50493055b3f099f6670df3ab2011af8085ba49c5
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Dec 20 20:05:59 EST 2004
Initialize the initial text region segment bitmap to zero. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@368 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_text.c
+++ b/jbig2_text.c
@@ -445,6 +445,7 @@
page_image = ctx->pages[ctx->current_page].image;
image = jbig2_image_new(ctx, region_info.width, region_info.height);
+ memset(image->data, 0, image->stride*image->height);
code = jbig2_decode_text_region(ctx, segment, ¶ms,
(const Jbig2SymbolDict * const *)dicts, n_dicts, image,