[Piglit] [PATCH] triangle-rasterization-overdraw: Initialize Vector member variables.

Brian Paul brian.e.paul at gmail.com
Wed Dec 5 07:16:50 PST 2012


On Tue, Dec 4, 2012 at 11:37 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/general/triangle-rasterization-overdraw.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/general/triangle-rasterization-overdraw.cpp b/tests/general/triangle-rasterization-overdraw.cpp
> index 58b6774..c2e5673 100644
> --- a/tests/general/triangle-rasterization-overdraw.cpp
> +++ b/tests/general/triangle-rasterization-overdraw.cpp
> @@ -52,6 +52,7 @@
>  struct Vector
>  {
>         Vector()
> +               : x(0), y(0)
>         {
>         }
>

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


More information about the Piglit mailing list