projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
136a12a
)
glsl: Initialize per_vertex_accumulator::fields.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 12 Oct 2013 06:14:47 +0000
(23:14 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 19 Oct 2013 01:29:18 +0000
(18:29 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/builtin_variables.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/builtin_variables.cpp
b/src/glsl/builtin_variables.cpp
index f06d2ab05fdd1c5cbe301680c82577bb0e67b264..64f34061a0fc06b08a391e169f0c6dc106bc649a 100644
(file)
--- a/
src/glsl/builtin_variables.cpp
+++ b/
src/glsl/builtin_variables.cpp
@@
-311,7
+311,8
@@
private:
per_vertex_accumulator::per_vertex_accumulator()
- : num_fields(0)
+ : fields(),
+ num_fields(0)
{
}