[Mesa-dev] [PATCH mesa] vk/wsi: avoid reading uninitialised memory

Caio Marcelo de Oliveira Filho caio.oliveira at intel.com
Wed Aug 22 19:47:34 UTC 2018

On Tue, Jul 17, 2018 at 01:18:42PM +0100, Eric Engestrom wrote:
> It will be ignored by x11_swapchain_result() anyway (because reaching
> the `fail` label without setting `result` means the swapchain status was
> already a hard error), but the compiler still complains about reading
> uninitialised memory.
> While at it, drop the unused assignment right before returning.
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
> ---
>  src/vulkan/wsi/wsi_common_x11.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>

More information about the mesa-dev mailing list