[Piglit] [PATCH v2] glsl-1.50-geometry-tri-strip-ordering-with-prim-restart: Fix typo.

Brian Paul brianp at vmware.com
Fri Aug 8 05:25:46 PDT 2014


On 08/08/2014 12:09 AM, Vinson Lee wrote:
> Fixes Coverity "Array compared against 0" defect.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   .../glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c b/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c
> index 025bfca..3229f1a 100644
> --- a/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c
> +++ b/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c
> @@ -193,7 +193,7 @@ piglit_init(int argc, char **argv)
>   			break;
>   		}
>   	}
> -	if (tests == NULL)
> +	if (test == NULL)
>   		print_usage_and_exit(argv[0]);
>   	if (strcmp(argv[2], "ffs") == 0)
>   		prim_restart_index = 0xff;
>

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



More information about the Piglit mailing list