MT#65420 check callback function before calling it

Change-Id: I4877d5dfdce01f13ebe21e11de2c0597adc54b74
pull/2169/head
Richard Fuchs 3 weeks ago
parent e7b9c53d2e
commit 669090c2f4

@ -390,7 +390,8 @@ static const char *json_list_iter(const ng_parser_t *parser, JsonNode *list,
JsonNode *n = json_array_get_element(a, i);
const char *err = NULL;
if (json_node_get_node_type(n) == JSON_NODE_VALUE
&& json_node_get_value_type(n) == G_TYPE_STRING)
&& json_node_get_value_type(n) == G_TYPE_STRING
&& str_callback)
{
const char *s = json_node_get_string(n);
if (s)

Loading…
Cancel
Save