From c8a50534d97664fffd4af880194d62c4f1835d7a Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Wed, 27 Mar 2013 14:41:57 +0200 Subject: [PATCH] lua-decision: select from an empty table is not an error, let resolution go on. --- src/core/lua-decision/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lua-decision/mdb.c b/src/core/lua-decision/mdb.c index f2bf1fb..9140be9 100644 --- a/src/core/lua-decision/mdb.c +++ b/src/core/lua-decision/mdb.c @@ -1199,7 +1199,7 @@ static int select_update_from_resolver(mrp_scriptlet_t *script, lua_pop(L, 1); - MRP_LUA_LEAVE(nrow); + MRP_LUA_LEAVE(nrow >= 0); } -- 2.7.4