]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virqemu: Reflect return type of virJSONValueArraySize()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 3 Aug 2016 06:32:44 +0000 (08:32 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2016 13:30:38 +0000 (15:30 +0200)
commit84b476e2bd20305d88840443c91ce2f5c01dd123
tree50cb8eed3f6e9aafb6bef9340646f6b917f928d6
parent041f35340b949e4b4dbb8fbbbc12d69dfac734a6
virqemu: Reflect return type of virJSONValueArraySize()

The virJSONValueArraySize() function return ssize_t (with
possibly returning -1 if the passed json is not an array).
Storing the return value into size_t is possibly dangerous then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virqemu.c