aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-01-28 12:25:18 +0100
committerPeter Wu <peter@lekensteyn.nl>2019-01-28 11:54:08 +0000
commit8003c0dd750c7b1da175596bcf8c635d8fb642fb (patch)
tree25a27dcab90f0250da21fc75ffd60c215f124056 /epan
parenteec3ce3bb211be10f1804423818f2689b0fa517e (diff)
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>
Diffstat (limited to 'epan')
-rw-r--r--epan/wslua/init_wslua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c
index c6ed24e6e3..e44309790d 100644
--- a/epan/wslua/init_wslua.c
+++ b/epan/wslua/init_wslua.c
@@ -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));