[jbig2-cvs] rev 342 - trunk

giles at ghostscript.com giles at ghostscript.com
Wed Dec 1 11:26:14 PST 2004


Author: giles
Date: 2004-12-01 11:26:13 -0800 (Wed, 01 Dec 2004)
New Revision: 342

Modified:
   trunk/jbig2_symbol_dict.c
Log:
Zero the sdrat values if they are not going to be used. Avoids a UMR in a later debug message.


Modified: trunk/jbig2_symbol_dict.c
===================================================================
--- trunk/jbig2_symbol_dict.c	2004-12-01 18:51:14 UTC (rev 341)
+++ trunk/jbig2_symbol_dict.c	2004-12-01 19:26:13 UTC (rev 342)
@@ -528,6 +528,10 @@
 	goto too_short;
       memcpy(params.sdrat, segment_data + offset, 4);
       offset += 4;
+  } else {
+      /* sdrat is meaningless if SDRTEMPLATE is 1, but set a value
+         to avoid confusion if anybody looks */ 
+      memset(params.sdrat, 0, 4);
   }
 
   if (offset + 8 > segment->data_length)



More information about the jbig2-cvs mailing list