| 803 | |
| 804 | |
| 805 | static int |
| 806 | json_norm_append_to_array(struct json_norm_value *val, |
| 807 | json_engine_t *je) |
| 808 | { |
| 809 | int err= 0; |
| 810 | struct json_norm_value tmp; |
| 811 | |
| 812 | DBUG_ASSERT(val->type == JSON_VALUE_ARRAY); |
| 813 | DBUG_ASSERT(je->value_type != JSON_VALUE_UNINITIALIZED); |
| 814 | |
| 815 | err= json_norm_value_init(&tmp, je); |
| 816 | |
| 817 | if (err) |
| 818 | return 1; |
| 819 | |
| 820 | err= json_norm_array_append_value(&val->value.array, &tmp); |
| 821 | |
| 822 | if (err) |
| 823 | json_norm_value_free(&tmp); |
| 824 | |
| 825 | return err; |
| 826 | } |
| 827 | |
| 828 | |
| 829 | static int |
no test coverage detected