summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-03-29 00:47:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-03-29 00:47:42 +0200
commit82a976e0909e02ba8c25e4fd10d0e56a3e5c13ca (patch)
treee835f83694ce1821a06a587abbeb36aabae2841c
parent8c8c1d5d52096a24e751f07d94972253a0e5054c (diff)
winwidget_allocate: memset winwid to zero
-rw-r--r--src/winwidget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index ae34045..0a9adc8 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -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;