Commit 56bbeb70 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Abort on code path that should never be taken

parent b6b96f77
...@@ -368,8 +368,7 @@ static int processItem(redisReader *r) { ...@@ -368,8 +368,7 @@ static int processItem(redisReader *r) {
case REDIS_REPLY_ARRAY: case REDIS_REPLY_ARRAY:
return processMultiBulkItem(r); return processMultiBulkItem(r);
default: default:
redisSetReplyReaderError(r,sdscatprintf(sdsempty(), assert(NULL);
"unknown item type '%d'", cur->type));
return -1; return -1;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment