Skip to content

Commit

Permalink
SCARD: return 0 for empty set
Browse files Browse the repository at this point in the history
  • Loading branch information
KDr2 committed Jul 7, 2014
1 parent c7e7426 commit cac54f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rl_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cac54f3

Please sign in to comment.