projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f16126
)
egl_dri2: Zero out driver struct
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 12 May 2010 18:34:55 +0000
(14:34 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 12 May 2010 18:34:55 +0000
(14:34 -0400)
Otherwise testing ->Probe for non-NULL and calling it goes boom.
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index 69f3c28c9e40665b09c8afbbc735a2001c3a4cc6..be79ae59f82ecd57c1c21aee307cb3852dd11cd8 100644
(file)
--- a/
src/egl/drivers/dri2/egl_dri2.c
+++ b/
src/egl/drivers/dri2/egl_dri2.c
@@
-1396,6
+1396,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;