projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
395b941
)
glsl: Initialize builtin_builder member variables.
author
Vinson Lee
<vlee@freedesktop.org>
Tue, 10 Sep 2013 03:45:28 +0000
(20:45 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Tue, 10 Sep 2013 16:49:02 +0000
(09:49 -0700)
Fixes "Uninitialized pointer field" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_functions.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/builtin_functions.cpp
b/src/glsl/builtin_functions.cpp
index 5d8f171b9a86188026f45ecf13c1cdeb1c1dcfe7..1fedca4cebb674287af9b5ec54381cba261c99a1 100644
(file)
--- a/
src/glsl/builtin_functions.cpp
+++ b/
src/glsl/builtin_functions.cpp
@@
-525,6
+525,9
@@
private:
* @{
*/
builtin_builder::builtin_builder()
+ : shader(NULL),
+ gl_ModelViewProjectionMatrix(NULL),
+ gl_Vertex(NULL)
{
mem_ctx = NULL;
}