From 8af4aaf351313f9d4692697bf28d3c3f84e01ca4 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 21 Sep 2014 21:24:01 -0700 Subject: Don't cast the return value of malloc/realloc See commit 2b7a972e for the Coccinelle script. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick --- src/mesa/program/prog_parameter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/program/prog_parameter.c') diff --git a/src/mesa/program/prog_parameter.c b/src/mesa/program/prog_parameter.c index 896c6052b84..0ef46415d9f 100644 --- a/src/mesa/program/prog_parameter.c +++ b/src/mesa/program/prog_parameter.c @@ -120,7 +120,7 @@ _mesa_add_parameter(struct gl_program_parameter_list *paramList, paramList->Size = paramList->Size + 4 * sz4; /* realloc arrays */ - paramList->Parameters = (struct gl_program_parameter *) + paramList->Parameters = realloc(paramList->Parameters, paramList->Size * sizeof(struct gl_program_parameter)); -- cgit v1.2.3