From cac54f3167646b37aa473c74dd6824163ae52b28 Mon Sep 17 00:00:00 2001 From: KDr2 Date: Mon, 7 Jul 2014 22:57:49 +0800 Subject: [PATCH] SCARD: return 0 for empty set --- src/rl_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rl_set.cpp b/src/rl_set.cpp index 9b990d5..01e64b6 100644 --- a/src/rl_set.cpp +++ b/src/rl_set.cpp @@ -193,7 +193,7 @@ void RLRequest::rl_scard(){ sizekey, &out); if(status.IsNotFound()) { - connection->write_nil(); + connection->write_integer("0", 1); } else if(status.ok()){ connection->write_integer(out.data(), out.size()); } else {