summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_instruction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program/prog_instruction.c')
-rw-r--r--src/mesa/program/prog_instruction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_instruction.c b/src/mesa/program/prog_instruction.c
index dcfedb77bdd..dc0a5109f88 100644
--- a/src/mesa/program/prog_instruction.c
+++ b/src/mesa/program/prog_instruction.c
@@ -70,7 +70,7 @@ struct prog_instruction *
_mesa_alloc_instructions(GLuint numInst)
{
return
- calloc(1, numInst * sizeof(struct prog_instruction));
+ calloc(numInst, sizeof(struct prog_instruction));
}