chiark / gitweb /
properly initialise blues in canonicalisation table
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Jul 2009 18:56:42 +0000 (19:56 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 5 Jul 2009 18:56:42 +0000 (19:56 +0100)
pctb/structure.c

index 859c7d9..a0b1060 100644 (file)
@@ -112,7 +112,7 @@ void canon_colour_prepare(void) {
     CanonColourInfoBlues *blues= greens->green2[g];
     if (!blues) {
       blues= greens->green2[g]= mmalloc(sizeof(*blues));
     CanonColourInfoBlues *blues= greens->green2[g];
     if (!blues) {
       blues= greens->green2[g]= mmalloc(sizeof(*blues));
-      memset(blues, '?', sizeof(blues));
+      memset(blues, '?', sizeof(*blues));
     }
 
     blues->blue2[b]= cci->c;
     }
 
     blues->blue2[b]= cci->c;