mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CLuaMenuChangeObserver::changeNotify: Fix segfault in item type 'chooser'
Origin commit data
------------------
Commit: 02137ca987
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-11-10 (Mon, 10 Nov 2014)
This commit is contained in:
@@ -1018,7 +1018,6 @@ bool CLuaMenuChangeObserver::changeNotify(lua_State *L, const std::string &luaAc
|
|||||||
lua_pushstring(L, optionValue);
|
lua_pushstring(L, optionValue);
|
||||||
lua_pcall(L, 2 /* two args */, 1 /* one result */, 0);
|
lua_pcall(L, 2 /* two args */, 1 /* one result */, 0);
|
||||||
double res = lua_isnumber(L, -1) ? lua_tonumber(L, -1) : 0;
|
double res = lua_isnumber(L, -1) ? lua_tonumber(L, -1) : 0;
|
||||||
lua_pop(L, 2);
|
|
||||||
return (((int)res == menu_return::RETURN_REPAINT) || ((int)res == menu_return::RETURN_EXIT_REPAINT));
|
return (((int)res == menu_return::RETURN_REPAINT) || ((int)res == menu_return::RETURN_EXIT_REPAINT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user