]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix ordering of arguments when calling vshCalloc.
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jul 2012 10:15:19 +0000 (12:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jul 2012 12:01:37 +0000 (14:01 +0200)
commit3cdb3b4e648c6690fba3647da88d73f99367b8be
tree67507e963084c8bf0fc1c0f7c463abc177aa03c0
parentfe04138ea0ecf85ab4f7b378cddb1eecceedddbb
virsh: Fix ordering of arguments when calling vshCalloc.

In vshSnapshotListCollect() vshCalloc was called with swapped nmemb and
size argument. This caused division by zero in xalloc_oversized as the
macro doesn't expect size to be zero.
tools/virsh.c