[Piglit] [PATCH V2] line-flat-clip-color: Initialize variable.
Brian Paul
brianp at vmware.com
Sat Feb 8 12:40:53 PST 2014
On 02/08/2014 01:39 PM, Vinson Lee wrote:
> Fixes "Uninitialized scalar variable" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> tests/general/line-flat-clip-color.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/general/line-flat-clip-color.c b/tests/general/line-flat-clip-color.c
> index 4cf37b2..eb771dc 100644
> --- a/tests/general/line-flat-clip-color.c
> +++ b/tests/general/line-flat-clip-color.c
> @@ -55,7 +55,7 @@ static bool have_pv = false;
> static bool
> test_one(int order, const float expected[3])
> {
> - bool pass;
> + bool pass = false;
> int dy, y = piglit_height / 2;
>
> glClear(GL_COLOR_BUFFER_BIT);
>
Reviewed-by: Brian Paul <brianp at vmware.com>
Thanks, Vinson!
More information about the Piglit
mailing list