From 6dbe6e4cecd2845695e3e9207792624bf3cd3905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 12 Feb 2019 12:04:24 +0100 Subject: [PATCH] virsh: initialize info in cmdIOThreadInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/virsh-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab