summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-12 14:34:55 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-12 14:51:25 -0400
commitf3b55494f33e8c6569f8a1ca7dacc9e0f0dd1228 (patch)
tree32a4cdfe6c012abc8165d30cb46aa300e6c71c47 /src
parent8b68c0aa24da7723c359e6a8a352f6e8fb584b5b (diff)
egl_dri2: Zero out driver struct
Otherwise testing ->Probe for non-NULL and calling it goes boom.
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 2dfb70de00..b7ffc8759c 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -1331,6 +1331,7 @@ _eglMain(const char *args)
if (!dri2_drv)
return NULL;
+ memset(dri2_drv, 0, sizeof *dri2_drv);
_eglInitDriverFallbacks(&dri2_drv->base);
dri2_drv->base.API.Initialize = dri2_initialize;
dri2_drv->base.API.Terminate = dri2_terminate;