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/dri2_glx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glx/dri2_glx.c') diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 58f09ed86af..4a08f84de3c 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -224,6 +224,7 @@ dri2CreateDrawable(__GLXscreenConfigs *base, XID xDrawable, if (!pdraw) return NULL; + memset(pdraw, 0, sizeof *pdraw); pdraw->base.destroyDrawable = dri2DestroyDrawable; pdraw->base.xDrawable = xDrawable; pdraw->base.drawable = drawable; -- cgit v1.2.3