]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: completer: use signed variable for XPathNodeSet errors
authorJán Tomko <jtomko@redhat.com>
Sun, 2 Aug 2020 21:30:17 +0000 (23:30 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 3 Aug 2020 13:19:29 +0000 (15:19 +0200)
commitce2483f6199a2d623f142a992a6afe41015d9ad8
tree4aeb9af88ff416baca41ad7aca52fd5decf5a953
parentc4e6ae9d7d4d44c230e0bd877b05bdebd41057a0
virsh: completer: use signed variable for XPathNodeSet errors

Although virXPathNodeSet is unlikely to return -1, we should
check for it properly or not at all.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-completer-host.c