diff options
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r-- | src/lua/lua_redis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index c427e60ed..4d2469e5f 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -143,6 +143,9 @@ lua_redis_push_data (const redisReply *r, struct lua_redis_userdata *ud) else if (r->type == REDIS_REPLY_STATUS) { lua_pushlstring (ud->L, r->str, r->len); } + else if (r->type == REDIS_REPLY_NIL) { + lua_pushnil (ud->L); + } else { msg_info ("bad type is passed: %d", r->type); lua_pushnil (ud->L); |