On Sat, Dec 22, 2012 at 1:07 PM, Vinson Lee <[email protected]> wrote:
> Fixes uninitialized scalar variable defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <[email protected]>
> ---
>  tests/spec/arb_vertex_array_object/isvertexarray.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tests/spec/arb_vertex_array_object/isvertexarray.c 
> b/tests/spec/arb_vertex_array_object/isvertexarray.c
> index 35e8862..9976ca0 100644
> --- a/tests/spec/arb_vertex_array_object/isvertexarray.c
> +++ b/tests/spec/arb_vertex_array_object/isvertexarray.c
> @@ -73,6 +73,8 @@ piglit_init(int argc, char **argv)
>         if (argc == 2 && strcmp(argv[1], "apple") == 0) {
>                 printf("apple\n");
>                 apple = GL_TRUE;
> +       } else {
> +               apple = GL_FALSE;
>         }
>
>         piglit_require_gl_version(15);
> --
> 1.8.0.1

Just initialize it when the variable is declared. I'd give that a
Reviewed-by: Matt Turner <[email protected]>
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to