mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 15:27:17 +00:00
Berry fix json crash
This commit is contained in:
parent
5d63fc1cf0
commit
a1e5f53ddd
@ -263,6 +263,9 @@ BERRY_API bint be_str2int(const char *str, const char **endstr)
|
|||||||
while ((c = be_char2hex(*str++)) >= 0) {
|
while ((c = be_char2hex(*str++)) >= 0) {
|
||||||
sum = sum * 16 + c;
|
sum = sum * 16 + c;
|
||||||
}
|
}
|
||||||
|
if (endstr) {
|
||||||
|
*endstr = str - 1;
|
||||||
|
}
|
||||||
return sum;
|
return sum;
|
||||||
} else {
|
} else {
|
||||||
/* decimal literal */
|
/* decimal literal */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user