[Piglit] [PATCH] ext_framebuffer_multisample: Initialize InterpolationTestPattern member.

Brian Paul brian.e.paul at gmail.com
Fri Dec 7 06:45:07 PST 2012


On Thu, Dec 6, 2012 at 10:54 PM, Vinson Lee <vlee at freedesktop.org> wrote:
> Fixes uninitialized scalar field defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/spec/ext_framebuffer_multisample/common.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/ext_framebuffer_multisample/common.cpp b/tests/spec/ext_framebuffer_multisample/common.cpp
> index 412bf01..717718c 100644
> --- a/tests/spec/ext_framebuffer_multisample/common.cpp
> +++ b/tests/spec/ext_framebuffer_multisample/common.cpp
> @@ -703,7 +703,7 @@ void Triangles::draw(const float (*proj)[4])
>
>
>  InterpolationTestPattern::InterpolationTestPattern(const char *frag)
> -       : frag(frag)
> +       : frag(frag), viewport_size_loc(0)
>  {
>  }
>

Reviewed-by: Brian Paul <brianp at vmware.com>


More information about the Piglit mailing list