Use calloc instead of malloc/memset-0
authorMatt Turner <mattst88@gmail.com>
Wed, 5 Sep 2012 06:09:22 +0000 (23:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 6 Sep 2012 05:28:50 +0000 (22:28 -0700)
commit6bda027e01c15df24d36de5bf3838ea8ed7e9e56
treebb41d06abd676913add0761732908c064b68663a
parent5067506ea6ada5eeae33b1acf1c916e00121c12a
Use calloc instead of malloc/memset-0

This patch has been generated by the following Coccinelle semantic
patch:

@@
expression E;
identifier I;
@@
- I = malloc(E);
+ I = calloc(1, E);
...
- memset(I, 0, sizeof *I);

Reviewed-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/glx/applegl_glx.c
src/glx/dri2_glx.c
src/glx/dri_glx.c
src/glx/drisw_glx.c
src/glx/indirect_glx.c