From c55cef8a5746323a490c488f55303061d031e5fd Mon Sep 17 00:00:00 2001 From: kraxel Date: Mon, 14 Aug 2006 19:38:05 +0000 Subject: make valgrind happy --- fb-gui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fb-gui.c') diff --git a/fb-gui.c b/fb-gui.c index 2d04685..f49d451 100644 --- a/fb-gui.c +++ b/fb-gui.c @@ -231,6 +231,7 @@ void shadow_init(void) sheight = fb_var.yres; shadow = malloc(sizeof(unsigned char*) * sheight); sdirty = malloc(sizeof(unsigned int) * sheight); + memset(sdirty,0, sizeof(unsigned int) * sheight); for (i = 0; i < sheight; i++) shadow[i] = malloc(swidth*3); shadow_clear(); -- cgit