From 054fd3b8cfc91983c90d5dd24ef1bd89d520722c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 22 Aug 2012 22:16:50 +0400 Subject: [PATCH] Fix xmlrpc lua parsing code. --- src/lua/lua_xmlrpc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lua/lua_xmlrpc.c b/src/lua/lua_xmlrpc.c index e9b317517..c49cd137e 100644 --- a/src/lua/lua_xmlrpc.c +++ b/src/lua/lua_xmlrpc.c @@ -419,16 +419,14 @@ lua_xmlrpc_parse_reply (lua_State *L) g_markup_parse_context_free (ctx); if (! res) { - lua_pushboolean (L, FALSE); - } - else { - lua_pushboolean (L, TRUE); + lua_pushnil (L); } } else { - lua_pushboolean (L, FALSE); + lua_pushnil (L); } + /* Return table or nil */ return 1; } -- 2.39.5