st/mesa: s/CALLOC/calloc/ to fix allocation bug
authorBrian Paul <brianp@vmware.com>
Thu, 30 Aug 2012 22:12:53 +0000 (16:12 -0600)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 12 Sep 2012 08:22:03 +0000 (10:22 +0200)
commit3f6ce3454f4d1331234f74670c82595f84269b1b
tree7d8aaeb3e70581a19e38b87f8aeac703a2a7edde
parent7f011e20758b1f4552d56dd40204605f7ae0e3c3
st/mesa: s/CALLOC/calloc/ to fix allocation bug

The CALLOC() macro only takes one argument so this was being treated
as a comma expression.  Simply use calloc() instead.

A follow-on patch will replace all CALLOC() calls with calloc().

NOTE: This is a candidate for the 8.0 and 9.0 branches.
(cherry picked from commit 43ed822a50db6b980041ddf91c16c7f8fccc4092)
src/mesa/state_tracker/st_mesa_to_tgsi.c