From d11b46df3333d840f35a83bf100b75c006948119 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 7 Nov 2013 09:25:16 -0800 Subject: [PATCH] Initialize colors_size. Valgrind caught this read of an uninitialized value. --- acre.c | 1 + 1 file changed, 1 insertion(+) diff --git a/acre.c b/acre.c index 5177419..aeec575 100644 --- a/acre.c +++ b/acre.c @@ -134,6 +134,7 @@ acre_create (void) acre->font = NULL; acre->colors = NULL; acre->num_colors = 0; + acre->colors_size = 0; acre->width = 0; acre->height = 0; -- 2.43.0