From 4aef26e36bc9aba4cd67c158e17f5fb93c9e018c Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 2 Sep 2014 18:56:18 +0200 Subject: mesa git update 2 Sep 2014 mesa commit 5a4e0f3873657d874eb5ff52819f42ea38d54b91 --- mesalib/src/mesa/program/prog_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesalib/src/mesa/program/prog_cache.c') 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; -- cgit v1.2.3