projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lua: fix ubus_lua_format_blob_is_array() to not leave garbage on the stack
[project/ubus.git]
/
lua
/
ubus.c
diff --git
a/lua/ubus.c
b/lua/ubus.c
index
081ff45
..
bdf924a
100644
(file)
--- a/
lua/ubus.c
+++ b/
lua/ubus.c
@@
-137,7
+137,7
@@
ubus_lua_format_blob_is_array(lua_State *L)
if (lua_type(L, -2) != LUA_TNUMBER)
#endif
{
- lua_pop(L,
1
);
+ lua_pop(L,
2
);
return false;
}
@@
-145,13
+145,14
@@
ubus_lua_format_blob_is_array(lua_State *L)
if ((cur - 1) != prv)
{
- lua_pop(L,
1
);
+ lua_pop(L,
2
);
return false;
}
prv = cur;
}
+ lua_pop(L, 1);
return true;
}