]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: initialize info in cmdIOThreadInfo
authorJán Tomko <jtomko@redhat.com>
Tue, 12 Feb 2019 11:04:24 +0000 (12:04 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 13 Feb 2019 12:58:56 +0000 (13:58 +0100)
Although it is not needed at the moment, do not rely on a value being
set before the first jump to cleanup.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain.c

index d9458a3d3180bdb186f46e578187fb2735b466de..aa168e5bbaa88b48f3c2546fc851a7c3f510078c 100644 (file)
@@ -7532,7 +7532,7 @@ cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd)
     bool live = vshCommandOptBool(cmd, "live");
     bool current = vshCommandOptBool(cmd, "current");
     size_t niothreads = 0;
-    virDomainIOThreadInfoPtr *info;
+    virDomainIOThreadInfoPtr *info = NULL;
     size_t i;
     unsigned int flags = VIR_DOMAIN_AFFECT_CURRENT;
     vshTablePtr table = NULL;