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
hiredis
Commits
e1abacb7
Commit
e1abacb7
authored
Apr 21, 2011
by
Pieter Noordhuis
Browse files
Return when memory cannot be allocated
parent
026636b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
e1abacb7
...
...
@@ -528,7 +528,12 @@ static int processItem(redisReader *r) {
}
redisReader
*
redisReplyReaderCreate
(
void
)
{
redisReader
*
r
=
calloc
(
sizeof
(
redisReader
),
1
);
redisReader
*
r
;
r
=
calloc
(
sizeof
(
redisReader
),
1
);
if
(
r
==
NULL
)
return
NULL
;
r
->
err
=
0
;
r
->
errstr
[
0
]
=
'\0'
;
r
->
fn
=
&
defaultFunctions
;
...
...
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