Add json_array_extend_new()

This commit is contained in:
Kenny Kwok 2021-07-05 11:52:15 +08:00
parent 342d2ab4da
commit 83ae6dc74d
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ static JSON_INLINE int json_array_insert(json_t *array, size_t ind, json_t *valu
}
static JSON_INLINE int json_array_extend_new(json_t *array, json_t *other) {
int ret json_array_extend(array, other);
int ret = json_array_extend(array, other);
json_decref(other);
return ret;
}