]> git.saurik.com Git - redis.git/blobdiff - deps/hiredis/hiredis.c
quick and dirty fix for hiredis bug creating problem with the new redis-cli connect...
[redis.git] / deps / hiredis / hiredis.c
index f0d78a0dac06c3466a762674d75442624f6580bc..898b4d6afa950184bc5bf8f1e05182e318313364 100644 (file)
@@ -664,6 +664,7 @@ void __redisSetError(redisContext *c, int type, const sds errstr) {
 
 static redisContext *redisContextInit() {
     redisContext *c = calloc(sizeof(redisContext),1);
+    c->fd = -1; /* quick fix for a bug that should be addressed differently */
     c->err = 0;
     c->errstr = NULL;
     c->obuf = sdsempty();