initialize structs to zero rather then using memset().

This commit is contained in:
2010-10-31 15:39:37 +00:00
parent 4c80d13e54
commit 3367ef8b65
32 changed files with 67 additions and 147 deletions

View File

@@ -216,16 +216,13 @@ void WM_timecursor(wmWindow *win, int nr)
{0, 60, 66, 66, 60, 66, 66, 60},
{0, 56, 68, 68, 120, 64, 68, 56}
};
unsigned char mask[16][2];
unsigned char bitmap[16][2];
unsigned char mask[16][2]= {{0}};
unsigned char bitmap[16][2]= {{0}};
int i, idx;
if(win->lastcursor == 0)
win->lastcursor= win->cursor;
memset(&bitmap, 0x00, sizeof(bitmap));
memset(&mask, 0xFF, sizeof(mask));
/* print number bottom right justified */
for (idx= 3; nr && idx>=0; idx--) {
char *digit= number_bitmaps[nr%10];