]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virJSONValueObjectGetStringArray: Report error if @key is not an array
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Dec 2020 11:10:34 +0000 (12:10 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Dec 2020 16:21:14 +0000 (17:21 +0100)
commit043b50b948ef3c2a4adf5fa32a93ec2589851ac6
tree07b38466c8089147ddef0501f190e06b1f30b350
parentebc241fcfffb18b68f850d9a8778b28f5a11f2cb
virJSONValueObjectGetStringArray: Report error if @key is not an array

The virJSONValueObjectGetStringArray() function is given a @key
which is supposed to be an array inside given @object. Well, if
it's not then an error state is returned (NULL), but no error
message is set.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virjson.c