summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-10-18 13:25:45 -0700
committerGitHub <noreply@github.com>2020-10-18 13:25:45 -0700
commit74e78498cf90cd26fadd2264586fcb9c1e404b8a (patch)
treef8bf29ed7f7d233e51f47ca5c08a095292040364 /hiredis.c
parentacc917548dcfd91e5d56387ed58b5f408cdb810a (diff)
parentb9b9f446feca0dda2148b5e3d541ff5e87627a31 (diff)
Merge pull request #888 from michael-grunder/nil-push-invalidation
Fix handling of NIL invalidation messages.
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hiredis.c b/hiredis.c
index 1170d75..3035f79 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -257,7 +257,8 @@ static void *createNilObject(const redisReadTask *task) {
parent = task->parent->obj;
assert(parent->type == REDIS_REPLY_ARRAY ||
parent->type == REDIS_REPLY_MAP ||
- parent->type == REDIS_REPLY_SET);
+ parent->type == REDIS_REPLY_SET ||
+ parent->type == REDIS_REPLY_PUSH);
parent->element[task->idx] = r;
}
return r;