Abort on code path that should never be taken

This commit is contained in:
Pieter Noordhuis 2010-11-22 10:38:07 +01:00
parent b6b96f776e
commit 56bbeb7049

View File

@ -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;
}
}