venus: silence -Wuninitialized
authorYiwei Zhang <zzyiwei@chromium.org>
Wed, 17 May 2023 04:59:40 +0000 (21:59 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 May 2023 22:52:11 +0000 (22:52 +0000)
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23090>

src/virtio/vulkan/vn_physical_device.c

index ebc8b1e..b87d518 100644 (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)