diff options
Diffstat (limited to 'epan/wslua/init_wslua.c')
-rw-r--r-- | epan/wslua/init_wslua.c | 2 |
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)); |