virsh: allow empty targets in cmdDomFSInfo

Ever since the introduction of the guest-get-fsinfo command
in QEMU commit 46d4c572 qga/qapi-schema.json says that
the 'disks' array can possibly be empty. For example when getting
the target list is unsupported:
https://bugzilla.redhat.com/show_bug.cgi?id=1567041

Pass an empty string instead of NULL to vshTableRowAppend to prevent
a mismatched column number.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko 2019-02-12 09:09:01 +01:00
parent 0e7707d830
commit 0f87356c51
1 changed files with 1 additions and 1 deletions

View File

@ -13978,7 +13978,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
info[i]->mountpoint,
info[i]->name,
info[i]->fstype,
targets,
targets ? targets : "",
NULL) < 0)
goto cleanup;
}