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

Brian Paul brian.e.paul at gmail.com
Sat Dec 1 17:20:55 PST 2012


On Sat, Dec 1, 2012 at 11:07 AM, 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.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/general/triangle-rasterization.cpp b/tests/general/triangle-rasterization.cpp
> index 5dc0256..9964742 100644
> --- a/tests/general/triangle-rasterization.cpp
> +++ b/tests/general/triangle-rasterization.cpp
> @@ -46,6 +46,7 @@
>  struct Vector
>  {
>         Vector()
> +               : x(0), y(0)
>         {
>         }
>

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


More information about the Piglit mailing list