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) {
case REDIS_REPLY_ARRAY:
return processMultiBulkItem(r);
default:
redisSetReplyReaderError(r,sdscatprintf(sdsempty(),
"unknown item type '%d'", cur->type));
assert(NULL);
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