Commit bd50301f authored by antirez's avatar antirez
Browse files

removed check for zmalloc return NULL in createClient(). The check was...

removed check for zmalloc return NULL in createClient(). The check was misplaced, and zmalloc never returns NULL.
parent 760dec3a
...@@ -16,7 +16,6 @@ redisClient *createClient(int fd) { ...@@ -16,7 +16,6 @@ redisClient *createClient(int fd) {
anetNonBlock(NULL,fd); anetNonBlock(NULL,fd);
anetTcpNoDelay(NULL,fd); anetTcpNoDelay(NULL,fd);
if (!c) return NULL;
if (aeCreateFileEvent(server.el,fd,AE_READABLE, if (aeCreateFileEvent(server.el,fd,AE_READABLE,
readQueryFromClient, c) == AE_ERR) readQueryFromClient, c) == AE_ERR)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment