removed check for zmalloc return NULL in createClient(). The check was misplaced, and zmalloc never returns NULL.

This commit is contained in:
antirez 2011-04-20 12:51:03 +02:00
parent ca50eb1977
commit 4da9895092

View 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)
{