non broken version of cJSON_GetArrayItem */
| 266 | |
| 267 | /* non broken version of cJSON_GetArrayItem */ |
| 268 | static cJSON *get_array_item(const cJSON *array, size_t item) |
| 269 | { |
| 270 | cJSON *child = array ? array->child : NULL; |
| 271 | while ((child != NULL) && (item > 0)) |
| 272 | { |
| 273 | item--; |
| 274 | child = child->next; |
| 275 | } |
| 276 | |
| 277 | return child; |
| 278 | } |
| 279 | |
| 280 | static cJSON_bool decode_array_index_from_pointer(const unsigned char *const pointer, size_t *const index) |
| 281 | { |
no outgoing calls
no test coverage detected