提交 c7ba7b8b 编写于 作者: A antirez

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.
上级 b3a96d45
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册