From: Keith Whitwell Date: Tue, 10 May 2005 18:22:19 +0000 (+0000) Subject: Fix some valgrind complaints X-Git-Tag: mesa-7.8~9271 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a42fe19d8d16e082880900fb5376144696cb7304;p=platform%2Fupstream%2Fmesa.git Fix some valgrind complaints --- diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index a375805..1e2d34a 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -408,6 +408,10 @@ add_parameter(struct program_parameter_list *paramList, } else { paramList->NumParameters = n + 1; + + _mesa_memset(¶mList->Parameters[n], 0, + sizeof(struct program_parameter)); + paramList->Parameters[n].Name = name ? _mesa_strdup(name) : NULL; paramList->Parameters[n].Type = type; if (values)