From: Ján Tomko Date: Tue, 12 Feb 2019 11:04:24 +0000 (+0100) Subject: virsh: initialize info in cmdIOThreadInfo X-Git-Tag: v5.1.0-rc1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dbe6e4cecd2845695e3e9207792624bf3cd3905;p=thirdparty%2Flibvirt.git 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 Reviewed-by: John Ferlan --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index d9458a3d31..aa168e5bba 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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;