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:
Ján Tomko 2019-02-12 12:04:24 +01:00
parent 4c44c9f456
commit 6dbe6e4cec

View File

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