[Mesa-dev] [PATCH] glsl: Initialize per_vertex_accumluator::fields.
Brian Paul
brianp at vmware.com
Sat Oct 19 00:05:15 CEST 2013
Typo in the title: accumulator
-Brian
On 10/18/2013 02:51 PM, Paul Berry wrote:
> On 11 October 2013 23:23, Vinson Lee <vlee at freedesktop.org
> <mailto:vlee at freedesktop.org>> wrote:
>
> Fixes "Uninitialized pointer field" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org
> <mailto:vlee at freedesktop.org>>
>
>
> Reviewed-by: Paul Berry <stereotype441 at gmail.com
> <mailto:stereotype441 at gmail.com>>
>
> ---
> src/glsl/builtin_variables.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/glsl/builtin_variables.cpp
> b/src/glsl/builtin_variables.cpp
> index ae0a03f..3f87502 100644
> --- 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)
> {
> }
>
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org <mailto:mesa-dev at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
More information about the mesa-dev
mailing list