mesa: Avoid read of uninitialized variable
authorRobert Foss <robert.foss@collabora.com>
Thu, 2 Mar 2017 00:14:39 +0000 (19:14 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 2 Mar 2017 15:45:19 +0000 (15:45 +0000)
commit88becf73022d780cfd0d7dbc5bb3911f8b0d2b11
treec06497f0a9a743d153bf17614f642639935c131a
parentaf5f13e58c9dfe3a54487a3b002370c1edd39cf3
mesa: Avoid read of uninitialized variable

The is_color_attachement variable is later read when handling two
separate error cases, where only one of the cases results in the
variable being initialized.

This can be avoided by giving the variable a safe default value.

Coverity-Id: 1398631
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/main/fbobject.c