7610619995
(upstream git commit 8c8c1d5d52096a24e751f07d94972253a0e5054c) winwidget_allocate: memset winwid to zero (upstream git commit 82a976e0909e02ba8c25e4fd10d0e56a3e5c13ca)
16 lines
466 B
Plaintext
16 lines
466 B
Plaintext
$OpenBSD: patch-src_winwidget_c,v 1.9 2012/03/29 12:29:10 dcoppa Exp $
|
|
|
|
winwidget_allocate: memset winwid to zero
|
|
(upstream git commit 82a976e0909e02ba8c25e4fd10d0e56a3e5c13ca)
|
|
|
|
--- src/winwidget.c.orig Thu Mar 29 14:20:29 2012
|
|
+++ src/winwidget.c Thu Mar 29 14:21:00 2012
|
|
@@ -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;
|