[Mesa-dev] [PATCH] i965: Initialize vec4_visitor member variables.

Paul Berry stereotype441 at gmail.com
Tue Oct 29 17:03:46 CET 2013


On 26 October 2013 00:13, Vinson Lee <vlee at freedesktop.org> wrote:

> Fixes "Uninitialized pointer field" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
>

Reviewed-by: Paul Berry <stereotype441 at gmail.com>


> ---
>  src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> index c163c94..c9cdf65 100644
> --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
> @@ -3145,7 +3145,12 @@ vec4_visitor::vec4_visitor(struct brw_context *brw,
>                            void *mem_ctx,
>                             bool debug_flag,
>                             bool no_spills)
> -   : debug_flag(debug_flag), no_spills(no_spills)
> +   : sanity_param_count(0),
> +     fail_msg(NULL),
> +     first_non_payload_grf(0),
> +     need_all_constants_in_pull_buffer(false),
> +     debug_flag(debug_flag),
> +     no_spills(no_spills)
>  {
>     this->brw = brw;
>     this->ctx = &brw->ctx;
> --
> 1.8.3.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131029/220b5e6f/attachment.html>


More information about the mesa-dev mailing list