forked from osmocom/wireshark
lua: fix build with Lua 5.1 due to missing LUA_OK macro
Change-Id: If367f79172c8222c65fd9d95a050e75194df852d Fixes: v2.9.1rc0-556-g6a49c72974 ("wslua: include Lua stack trace in startup error messages") Reviewed-on: https://code.wireshark.org/review/31771 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
eec3ce3bb2
commit
8003c0dd75
|
@ -548,7 +548,7 @@ static gboolean lua_load_script(const gchar* filename, const gchar* dirname, con
|
|||
numargs = lua_script_push_args(file_count);
|
||||
}
|
||||
error = lua_pcall(L, numargs, 0, 1);
|
||||
if (error != LUA_OK) {
|
||||
if (error) {
|
||||
switch (error) {
|
||||
case LUA_ERRRUN:
|
||||
report_failure("Lua: Error during loading:\n%s", lua_tostring(L, -1));
|
||||
|
|
Loading…
Reference in New Issue