From 922f0e898ab47c99188713f2f2e34db675d9d6c2 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 19 Aug 2016 13:43:32 +0200 Subject: Revert "[Fix] Fix returning of REDIS_NIL" This reverts commit ca2374d88c09759f2a46e68801e5eb557eee7d3b. --- src/lua/lua_redis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lua') diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 1fc8e1777..c35d9614b 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -271,7 +271,8 @@ lua_redis_push_reply (lua_State *L, const redisReply *r) lua_pushnumber (L, r->integer); break; case REDIS_REPLY_NIL: - lua_pushnil (L); + /* XXX: not the best approach */ + lua_newuserdata (L, sizeof (gpointer)); break; case REDIS_REPLY_STRING: case REDIS_REPLY_STATUS: -- cgit v1.2.3