From 6febf16057c3e263920320b62d01eb1d221a172e Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 25 Mar 2015 17:08:26 +0100 Subject: [PATCH 1/1] Added new case to lua_state_cloner.c: LUA_TNONE - This should be called if the top value does not exist. --- src/bindings/lua/lua_state_cloner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindings/lua/lua_state_cloner.c b/src/bindings/lua/lua_state_cloner.c index 12f552fc44..64a4f8d09a 100644 --- a/src/bindings/lua/lua_state_cloner.c +++ b/src/bindings/lua/lua_state_cloner.c @@ -232,6 +232,10 @@ void sglua_copy_value(lua_State* src, lua_State* dst) { case LUA_TTHREAD: sglua_copy_thread(src, dst); break; + + case LUA_TNONE: + XBT_ERROR("This index is acceptable but non-valid"); + break; } XBT_DEBUG("%sData copied", sglua_get_spaces(indent)); -- 2.20.1