diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-04 02:39:21 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-04 02:39:21 +0400 |
commit | 60e5abe71f8c219f7ba6dcb8ac9d109ca5610715 (patch) | |
tree | 6a57327818427635e3ac1304e8c1858f9b0621bd /intern/cycles/kernel/osl/osl_shader.cpp | |
parent | b314209356288c3768faa1d7fbd7b1bf9d179a7a (diff) |
Fix a few issues reported by coverity scan.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_shader.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_shader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_shader.cpp b/intern/cycles/kernel/osl/osl_shader.cpp index d2ccb7da84c..3c057f2b968 100644 --- a/intern/cycles/kernel/osl/osl_shader.cpp +++ b/intern/cycles/kernel/osl/osl_shader.cpp @@ -388,6 +388,8 @@ static void flatten_volume_closure_tree(ShaderData *sd, sc.sample_weight = sample_weight; sc.type = CLOSURE_VOLUME_ID; + sc.data0 = 0.0f; + sc.data1 = 0.0f; sc.prim = NULL; /* add */ |