shithub: jbig2

Download patch

ref: d489de65d56c8277d5b078759c20a921f429cd63
parent: ccb4bbffa33b6c0e33b9bc6844ddf69d155c9eb3
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Dec 1 14:26:13 EST 2004

Zero the sdrat values if they are not going to be used. Avoids a UMR in a later debug message.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@342 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -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)