]> git.cworth.org Git - acre/commitdiff
Initialize colors_size.
authorCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 17:25:16 +0000 (09:25 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 17:25:16 +0000 (09:25 -0800)
Valgrind caught this read of an uninitialized value.

acre.c

diff --git a/acre.c b/acre.c
index 5177419ae1b8c7b203851a4878e3d6201101840b..aeec575ef9a450378024543b422167a2e92ec521 100644 (file)
--- 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;