diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-04 07:52:55 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-04 07:52:55 -0600 |
commit | dd4c142e90a0cba5b445990bb522ce9199d7f565 (patch) | |
tree | 9696d4bbfad1319757a9fa4687a28cc7bb7db753 /src/glx/x11/dri_glx.c | |
parent | 0a56a4968786bd93d9117af2a0a3bda13ea71c4d (diff) |
glx: replace Xmalloc() calls with Xcalloc()
Fixes a bug where psp->WaitX was uninitialized. Reported by Chris Clayton.
Diffstat (limited to 'src/glx/x11/dri_glx.c')
-rw-r--r-- | src/glx/x11/dri_glx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 87d62ad846..3ce410d9be 100644 --- a/src/glx/x11/dri_glx.c +++ b/src/glx/x11/dri_glx.c @@ -614,7 +614,7 @@ static __GLXDRIscreen *driCreateScreen(__GLXscreenConfigs *psc, int screen, char *driverName; int i; - psp = Xmalloc(sizeof *psp); + psp = Xcalloc(1, sizeof *psp); if (psp == NULL) return NULL; |