aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/devices/virtio/virtio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c
index 63ca6011a9e..7418673bbd1 100644
--- a/src/vnet/devices/virtio/virtio.c
+++ b/src/vnet/devices/virtio/virtio.c
@@ -62,9 +62,9 @@ virtio_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 idx, u16 sz)
{
clib_error_t *err = 0;
virtio_vring_t *vring;
- struct vhost_vring_state state;
- struct vhost_vring_addr addr;
- struct vhost_vring_file file;
+ struct vhost_vring_state state = { 0 };
+ struct vhost_vring_addr addr = { 0 };
+ struct vhost_vring_file file = { 0 };
clib_file_t t = { 0 };
int i;