diff options
author | Brian Paul <[email protected]> | 2009-05-04 07:52:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-05-04 07:52:55 -0600 |
commit | dd4c142e90a0cba5b445990bb522ce9199d7f565 (patch) | |
tree | 9696d4bbfad1319757a9fa4687a28cc7bb7db753 /src | |
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')
-rw-r--r-- | src/glx/x11/dri_glx.c | 2 | ||||
-rw-r--r-- | src/glx/x11/drisw_glx.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/x11/dri_glx.c b/src/glx/x11/dri_glx.c index 87d62ad8468..3ce410d9be3 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; diff --git a/src/glx/x11/drisw_glx.c b/src/glx/x11/drisw_glx.c index 35bbd9151ca..5e3d763cff5 100644 --- a/src/glx/x11/drisw_glx.c +++ b/src/glx/x11/drisw_glx.c @@ -359,7 +359,7 @@ driCreateScreen(__GLXscreenConfigs * psc, int screen, const char *driverName = "swrast"; int i; - psp = Xmalloc(sizeof *psp); + psp = Xcalloc(1, sizeof *psp); if (psp == NULL) return NULL; |