mirror of
https://github.com/fluencelabs/redis
synced 2025-05-05 23:42:14 +00:00
removed check for zmalloc return NULL in createClient(). The check was misplaced, and zmalloc never returns NULL.
This commit is contained in:
parent
760dec3a6c
commit
bd50301f3e
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user