From ea578140030ddc9dd5e36a6e1014efa112833822 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 30 Apr 2026 13:11:41 -0400 Subject: [PATCH] lavapipe: null out local var to avoid uninit warning harmless warning, but annoying Part-of: --- src/gallium/frontends/lavapipe/lvp_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_image.c b/src/gallium/frontends/lavapipe/lvp_image.c index 7c6add35ed7..461d3396bc8 100644 --- a/src/gallium/frontends/lavapipe/lvp_image.c +++ b/src/gallium/frontends/lavapipe/lvp_image.c @@ -544,7 +544,7 @@ VKAPI_ATTR void VKAPI_CALL lvp_GetDeviceImageSubresourceLayoutKHR( const VkDeviceImageSubresourceInfoKHR* pInfo, VkSubresourceLayout2KHR* pLayout) { - VkImage image; + VkImage image = VK_NULL_HANDLE; /* technically supposed to be able to do this without creating an image, but that's harder */ if (lvp_image_create(_device, pInfo->pCreateInfo, NULL, &image) != VK_SUCCESS) return;