Commit 8332a883 authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

File descriptors can be 0

parent a9c21e4d
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment