diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-22 10:38:07 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-22 10:38:07 +0100 |
commit | 56bbeb7049773f6210fc5173e2973dd292d3827f (patch) | |
tree | a1679c62252a8668015ccb23413fdfe57c17e7ae | |
parent | b6b96f776ea2f954b50d553cd16f4990d70260dc (diff) |
Abort on code path that should never be taken
-rw-r--r-- | hiredis.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } } |