aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-08-14 19:38:05 +0000
committerkraxel <kraxel>2006-08-14 19:38:05 +0000
commitc55cef8a5746323a490c488f55303061d031e5fd (patch)
tree8c516d670fbc56311845db1b0cef7a50cb4af659 /fb-gui.c
parentce4746a8a815fa225010bcf268b34c56daf93beb (diff)
downloadfbida-c55cef8a5746323a490c488f55303061d031e5fd.tar.gz
make valgrind happy
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c1
1 files changed, 1 insertions, 0 deletions
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();