Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
8332a883
Commit
8332a883
authored
Apr 09, 2014
by
Pieter Noordhuis
Browse files
File descriptors can be 0
parent
a9c21e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
net.c
View file @
8332a883
...
...
@@ -55,7 +55,7 @@
void
__redisSetError
(
redisContext
*
c
,
int
type
,
const
char
*
str
);
static
void
redisContextCloseFd
(
redisContext
*
c
)
{
if
(
c
&&
c
->
fd
>
0
)
{
if
(
c
&&
c
->
fd
>
=
0
)
{
close
(
c
->
fd
);
c
->
fd
=
-
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