mirror of
https://github.com/DaveGamble/cJSON
synced 2025-03-25 04:18:52 +00:00
refactor decode_array_index_from_pointer
This commit is contained in:
parent
4932c80f26
commit
4642d6575f
@ -229,7 +229,7 @@ static cJSON_bool decode_array_index_from_pointer(const unsigned char * const po
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (position = 0; (pointer[position] >= '0') && (*pointer <= '9'); position++)
|
for (position = 0; (pointer[position] >= '0') && (pointer[0] <= '9'); position++)
|
||||||
{
|
{
|
||||||
parsed_index = (10 * parsed_index) + (size_t)(pointer[position] - '0');
|
parsed_index = (10 * parsed_index) + (size_t)(pointer[position] - '0');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user