]> git.saurik.com Git - redis.git/commitdiff
removed check for zmalloc return NULL in createClient(). The check was misplaced...
authorantirez <antirez@gmail.com>
Wed, 20 Apr 2011 10:51:03 +0000 (12:51 +0200)
committerantirez <antirez@gmail.com>
Wed, 20 Apr 2011 10:51:03 +0000 (12:51 +0200)
src/networking.c

index c8a39ba5c6f897b41f9826bd131b2c3f6eab7058..995b910cf1b510fe49bb5dbe7f135993ad7220d5 100644 (file)
@@ -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)
     {