summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 17:49:39 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 17:49:39 +0200
commitbc5dcdbc85775ffa5213ae0678ca452ad4c8683f (patch)
tree09f90694763e6b82536407e21abc9bd24682cd27 /hiredis.c
parent171b5a24d44b24b1d15ba1d6689cbe37e9a0cfe6 (diff)
Status replies should have type REDIS_REPLY_STATUS
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hiredis.c b/hiredis.c
index f1ade93..c2f58fb 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -118,10 +118,6 @@ static void *createStringObject(redisReadTask *task, char *str, size_t len) {
r->str = value;
r->len = len;
- /* for API compat, set STATUS to STRING */
- if (task->type == REDIS_REPLY_STATUS)
- r->type = REDIS_REPLY_STRING;
-
if (task->parent) {
redisReply *parent = task->parent;
assert(parent->type == REDIS_REPLY_ARRAY);