From bd50301f3e3d66c98ec611f1df4a61344a199ef5 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 510ed82a..ce66307b 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) {