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
36dda955
Commit
36dda955
authored
Dec 15, 2011
by
antirez
Browse files
ae_epoll.c typo introduced in the previous commit fixed.
parent
e074416b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ae_epoll.c
View file @
36dda955
...
@@ -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