Abort on code path that should never be taken
This commit is contained in:
parent
b6b96f776e
commit
56bbeb7049
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user