Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
24accab2
Commit
24accab2
authored
Dec 16, 2011
by
antirez
Browse files
Merge remote-tracking branch 'origin/unstable' into unstable
parents
18d0ef4b
36dda955
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae_epoll.c
View file @
24accab2
...
@@ -13,7 +13,7 @@ static int aeApiCreate(aeEventLoop *eventLoop) {
...
@@ -13,7 +13,7 @@ static int aeApiCreate(aeEventLoop *eventLoop) {
aeApiState
*
state
=
zmalloc
(
sizeof
(
aeApiState
));
aeApiState
*
state
=
zmalloc
(
sizeof
(
aeApiState
));
if
(
!
state
)
return
-
1
;
if
(
!
state
)
return
-
1
;
state
->
events
=
zmalloc
(
sizeof
(
epoll_event
)
*
eventLoop
->
setsize
);
state
->
events
=
zmalloc
(
sizeof
(
struct
epoll_event
)
*
eventLoop
->
setsize
);
if
(
!
state
->
events
)
{
if
(
!
state
->
events
)
{
zfree
(
state
);
zfree
(
state
);
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment