changeset 523:c3fe9e4bdec1 Android_Skia

Fix a bug of a non-initialized variable. pos_cnt is not initialized before used. It causes - tank shows nothing at begining. - dynamic being segmentation fault for any X event at first few seconds.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 22 Dec 2009 11:04:52 +0800
parents abaf96c8d7ef
children dcf4673896f4
files src/redraw_man.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/redraw_man.c	Sat Dec 19 08:22:58 2009 +0800
+++ b/src/redraw_man.c	Tue Dec 22 11:04:52 2009 +0800
@@ -1349,6 +1349,7 @@
 	    return ERR;
     }
     
+    pos_cnt = 0;
     FORCHILDREN(coord, child) {
 	if(child->flags & COF_OWN_CANVAS) {
 	    area_to_positions(coord_get_area(child), poses + pos_cnt);