mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 16:56:34 +00:00
fix be_byteslib.c
This commit is contained in:
parent
64de5497f4
commit
ef1cbeae21
@ -1180,6 +1180,7 @@ static int m_item(bvm *vm)
|
|||||||
{
|
{
|
||||||
int argc = be_top(vm);
|
int argc = be_top(vm);
|
||||||
buf_impl attr = bytes_check_data(vm, 0); /* we reserve 4 bytes anyways */
|
buf_impl attr = bytes_check_data(vm, 0); /* we reserve 4 bytes anyways */
|
||||||
|
check_ptr(vm, &attr);
|
||||||
if (argc >=2 && be_isint(vm, 2)) { /* single byte */
|
if (argc >=2 && be_isint(vm, 2)) { /* single byte */
|
||||||
int index = be_toint(vm,2);
|
int index = be_toint(vm,2);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user