mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
lua Fix a few potential bugs
Change-Id: I0293371c58f1ca2d148b3b1e1f780cf76f312ef9
This commit is contained in:
parent
aad15d5cd7
commit
8c36d8b131
3 changed files with 10 additions and 3 deletions
|
@ -359,6 +359,8 @@ static void open_func (LexState *ls, FuncState *fs) {
|
|||
|
||||
|
||||
static void close_func (LexState *ls) {
|
||||
if (!ls || !ls->fs || !ls->fs->f)
|
||||
return;
|
||||
lua_State *L = ls->L;
|
||||
FuncState *fs = ls->fs;
|
||||
Proto *f = fs->f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue