commit | 3073c6b99557042476add4ddbcc8c834ae70fce5 | [log] [tgz] |
---|---|---|
author | Marc-André Lureau <marcandre.lureau@redhat.com> | Thu Mar 28 14:20:51 2024 +0400 |
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | Wed Oct 02 16:14:29 2024 +0400 |
tree | 50395bf145f4b0fa86b66d0f83e2a537c966e5da | |
parent | 4770030bcb87a910e34f60c03c439b385b33c2da [diff] |
hw/virtio: fix -Werror=maybe-uninitialized ../hw/virtio/vhost-shadow-virtqueue.c:545:13: error: ‘r’ may be used uninitialized [-Werror=maybe-uninitialized] Set `r` to 0 at every loop, since we don't check vhost_svq_get_buf() return value. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>