From d71e935797af1a2a5514f50fb052351e5b30e201 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Jul 2009 19:56:42 +0100 Subject: [PATCH] properly initialise blues in canonicalisation table --- pctb/structure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pctb/structure.c b/pctb/structure.c index 859c7d9..a0b1060 100644 --- a/pctb/structure.c +++ b/pctb/structure.c @@ -112,7 +112,7 @@ void canon_colour_prepare(void) { 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; -- 2.30.2