venus: silence a build warning
authorYiwei Zhang <zzyiwei@chromium.org>
Tue, 15 Jun 2021 16:33:29 +0000 (16:33 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 19:50:10 +0000 (19:50 +0000)
Address -Wsometimes-uninitialized

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11342>

src/virtio/vulkan/vn_device.c

index 206675f..ea8a52b 100644 (file)
@@ -579,7 +579,7 @@ void
 vn_instance_submit_command(struct vn_instance *instance,
                            struct vn_instance_submit_command *submit)
 {
-   void *reply_ptr;
+   void *reply_ptr = NULL;
    submit->reply_shmem = NULL;
 
    mtx_lock(&instance->ring.mutex);