mirror of https://github.com/arendst/Tasmota.git
Merge pull request #16399 from s-hadinger/berry_fix_json_crash
Berry fix json crash
This commit is contained in:
commit
5a103505ad
|
@ -263,6 +263,9 @@ BERRY_API bint be_str2int(const char *str, const char **endstr)
|
|||
while ((c = be_char2hex(*str++)) >= 0) {
|
||||
sum = sum * 16 + c;
|
||||
}
|
||||
if (endstr) {
|
||||
*endstr = str - 1;
|
||||
}
|
||||
return sum;
|
||||
} else {
|
||||
/* decimal literal */
|
||||
|
|
Loading…
Reference in New Issue