summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-22 10:38:07 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-11-22 10:38:07 +0100
commit56bbeb7049773f6210fc5173e2973dd292d3827f (patch)
treea1679c62252a8668015ccb23413fdfe57c17e7ae
parentb6b96f776ea2f954b50d553cd16f4990d70260dc (diff)
Abort on code path that should never be taken
-rw-r--r--hiredis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hiredis.c b/hiredis.c
index f6b1d54..3feba45 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -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;
}
}