From: Brian Date: Fri, 9 Feb 2007 19:04:52 +0000 (-0700) Subject: always init param vars to silence valgrind warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf490a7f81b393242ab5eeec085e79a60bcf6345;p=mesa.git always init param vars to silence valgrind warnings --- 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; }