venus: silence -Wuninitialized

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23090>
This commit is contained in:
Yiwei Zhang 2023-05-16 21:59:40 -07:00 committed by Marge Bot
parent d0669f3ede
commit 2b551d100b

View file

@ -1497,7 +1497,7 @@ enumerate_physical_devices(struct vn_instance *instance,
VkPhysicalDevice *handles = NULL;
VkResult result;
uint32_t count;
uint32_t count = 0;
result = vn_call_vkEnumeratePhysicalDevices(
instance, vn_instance_to_handle(instance), &count, NULL);
if (result != VK_SUCCESS || !count)