From c7ba7b8bbb97e8b9e388ec0e9a2ea161c23a3fd0 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 20 Apr 2011 12:51:03 +0200 Subject: [PATCH] removed check for zmalloc return NULL in createClient(). The check was misplaced, and zmalloc never returns NULL. --- src/networking.c | 1 - 1 file changed, 1 deletion(-) 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) {