mirror of
https://github.com/openharmony/third_party_cJSON.git
synced 2026-07-20 21:59:36 -04:00
!106 修复cJSON_Utils.c文件decode_array_index_from_pointer函数
Merge pull request !106 from 刘永凯/DTS_fixCJSON
This commit is contained in:
+1
-1
@@ -282,7 +282,7 @@ static cJSON_bool decode_array_index_from_pointer(const unsigned char * const po
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (position = 0; (pointer[position] >= '0') && (pointer[0] <= '9'); position++)
|
||||
for (position = 0; (pointer[position] >= '0') && (pointer[position] <= '9'); position++)
|
||||
{
|
||||
parsed_index = (10 * parsed_index) + (size_t)(pointer[position] - '0');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user