diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-05-10 18:22:19 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-05-10 18:22:19 +0000 |
commit | a42fe19d8d16e082880900fb5376144696cb7304 (patch) | |
tree | db8b226ea7ed447c1ad28f70af88be19def6ad6c /src | |
parent | e57d5c47428313a846f587e02693fc4fb2e30dc6 (diff) |
Fix some valgrind complaints
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/program.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index a375805052..1e2d34a307 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) |