From: antirez Date: Wed, 20 Apr 2011 10:51:03 +0000 (+0200) Subject: removed check for zmalloc return NULL in createClient(). The check was misplaced... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/c7ba7b8bbb97e8b9e388ec0e9a2ea161c23a3fd0 removed check for zmalloc return NULL in createClient(). The check was misplaced, and zmalloc never returns NULL. --- diff --git a/src/networking.c b/src/networking.c index c8a39ba5..995b910c 100644 --- a/src/networking.c +++ b/src/networking.c @@ -16,7 +16,6 @@ redisClient *createClient(int fd) { anetNonBlock(NULL,fd); anetTcpNoDelay(NULL,fd); - if (!c) return NULL; if (aeCreateFileEvent(server.el,fd,AE_READABLE, readQueryFromClient, c) == AE_ERR) {