Permalink
Browse files

winwidget_allocate: memset winwid to zero

  • Loading branch information...
1 parent 8c8c1d5 commit 82a976e0909e02ba8c25e4fd10d0e56a3e5c13ca @derf committed Mar 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/winwidget.c
View
@@ -42,6 +42,7 @@ static winwidget winwidget_allocate(void)
winwidget ret = NULL;
ret = emalloc(sizeof(_winwidget));
+ memset(ret, 0, sizeof(_winwidget));
ret->win = 0;
ret->w = 0;

0 comments on commit 82a976e

Please sign in to comment.