From: Carl Worth Date: Thu, 7 Nov 2013 17:25:16 +0000 (-0800) Subject: Initialize colors_size. X-Git-Url: https://git.cworth.org/git?p=acre;a=commitdiff_plain;h=d11b46df3333d840f35a83bf100b75c006948119 Initialize colors_size. Valgrind caught this read of an uninitialized value. --- 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;