diff --git a/devicemodel/hw/pci/virtio/vhost_vsock.c b/devicemodel/hw/pci/virtio/vhost_vsock.c index 0f87f8fc8..951389ca8 100644 --- a/devicemodel/hw/pci/virtio/vhost_vsock.c +++ b/devicemodel/hw/pci/virtio/vhost_vsock.c @@ -239,7 +239,7 @@ virtio_vhost_vsock_init(struct vmctx *ctx, struct pci_vdev *dev, char *opts) { struct virtio_vsock *vsock; int rc; - uint64_t cid; + uint64_t cid = 0; pthread_mutexattr_t attr; char *devopts = NULL; char *tmp = NULL;