aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/program/prog_cache.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-09-02 18:56:18 +0200
committermarha <marha@users.sourceforge.net>2014-09-02 18:56:52 +0200
commit4aef26e36bc9aba4cd67c158e17f5fb93c9e018c (patch)
treeff68065bef6269e38b41e6e3e57edbcf858d3efb /mesalib/src/mesa/program/prog_cache.c
parent04168ae281bfbd714ddf6b90d98eac892508dde8 (diff)
downloadvcxsrv-4aef26e36bc9aba4cd67c158e17f5fb93c9e018c.tar.gz
vcxsrv-4aef26e36bc9aba4cd67c158e17f5fb93c9e018c.tar.bz2
vcxsrv-4aef26e36bc9aba4cd67c158e17f5fb93c9e018c.zip
mesa git update 2 Sep 2014
mesa commit 5a4e0f3873657d874eb5ff52819f42ea38d54b91
Diffstat (limited to 'mesalib/src/mesa/program/prog_cache.c')
-rw-r--r--mesalib/src/mesa/program/prog_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/mesa/program/prog_cache.c b/mesalib/src/mesa/program/prog_cache.c
index 07192a96a..34609f056 100644
--- a/mesalib/src/mesa/program/prog_cache.c
+++ b/mesalib/src/mesa/program/prog_cache.c
@@ -143,7 +143,7 @@ _mesa_new_program_cache(void)
if (cache) {
cache->size = 17;
cache->items =
- calloc(1, cache->size * sizeof(struct cache_item));
+ calloc(cache->size, sizeof(struct cache_item *));
if (!cache->items) {
free(cache);
return NULL;