always init param vars to silence valgrind warnings
authorBrian <brian@nostromo.localnet.net>
Fri, 9 Feb 2007 19:04:52 +0000 (12:04 -0700)
committerBrian <brian@nostromo.localnet.net>
Fri, 9 Feb 2007 19:04:52 +0000 (12:04 -0700)
src/mesa/shader/prog_parameter.c

index 870e826460dd1cd142cb2aa8792158516dc96cf9..3ebd559119c6be5572c6674ef1fd6b6a90b737d4 100644 (file)
@@ -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;
       }