From 6393a33944ec9983426cecd5f6c9f05ac089e1ae Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 23 Jul 2010 21:45:05 -0400 Subject: glx: zero out drawable structs after allocation --- src/glx/drisw_glx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glx/drisw_glx.c') diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 4265f564120..852e56e484e 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -362,6 +362,7 @@ driCreateDrawable(__GLXscreenConfigs *base, XID xDrawable, if (!pdp) return NULL; + memset(pdp, 0, sizeof *pdp); pdp->base.xDrawable = xDrawable; pdp->base.drawable = drawable; pdp->base.psc = &psc->base; -- cgit v1.2.3