mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virsh: initialize info in cmdIOThreadInfo
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user