From cf490a7f81b393242ab5eeec085e79a60bcf6345 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 9 Feb 2007 12:04:52 -0700 Subject: [PATCH] always init param vars to silence valgrind warnings --- src/mesa/shader/prog_parameter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 870e826460d..3ebd559119c 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -131,6 +131,10 @@ _mesa_add_parameter(struct gl_program_parameter_list *paramList, COPY_4V(paramList->ParameterValues[oldNum + i], values); values += 4; } + else { + /* silence valgrind */ + ASSIGN_4V(paramList->ParameterValues[oldNum + i], 0, 0, 0, 0); + } size -= 4; } -- 2.30.2