Re: [PATCH 2/3] virJSONValueObjectGetStringArray: Report error if @key is not an array

2020-12-01 Thread Ján Tomko
On a Tuesday in 2020, Michal Privoznik wrote: 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 --- src/uti

[PATCH 2/3] virJSONValueObjectGetStringArray: Report error if @key is not an array

2020-12-01 Thread Michal Privoznik
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 --- src/util/virjson.c | 6 +- 1 file changed, 5 inser