diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-23 21:45:05 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-23 22:05:53 -0400 |
commit | 6393a33944ec9983426cecd5f6c9f05ac089e1ae (patch) | |
tree | ca7bc3f53dae4c29f2e28415ac260f629dbda6af /src/glx/drisw_glx.c | |
parent | 6ec39db726beead21d97bf64ddbe1f0b2d2d6ca1 (diff) |
glx: zero out drawable structs after allocation
Diffstat (limited to 'src/glx/drisw_glx.c')
-rw-r--r-- | src/glx/drisw_glx.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |