From 56bbeb7049773f6210fc5173e2973dd292d3827f Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 22 Nov 2010 10:38:07 +0100 Subject: Abort on code path that should never be taken --- hiredis.c | 3 +-- 1 file changed, 1 insertion(+), 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; } } -- cgit v1.2.3