From 52a9a84cacd4658aef742d1bb1abcc1d827868c7 Mon Sep 17 00:00:00 2001 From: Yifan Liu Date: Tue, 14 Jun 2022 06:28:04 +0000 Subject: [PATCH] dm: Coding style fix: variable initialization Initialize cid variable in virtio_vhost_vsock_init. Tracked-On: #7593 Signed-off-by: Yifan Liu --- devicemodel/hw/pci/virtio/vhost_vsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/hw/pci/virtio/vhost_vsock.c b/devicemodel/hw/pci/virtio/vhost_vsock.c index e2aa06acd..71228e94f 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;