summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;