diff options
author | antirez <antirez@gmail.com> | 2010-11-29 12:20:17 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2010-11-29 12:20:17 +0100 |
commit | d8d528e9926d712cf02617dcdb6e9bde90e4e49c (patch) | |
tree | e6ac2059a68db8b58b92cf7bafd4dbb30652b2d5 /deps | |
parent | efcf948c1aff6cc71690cf3dbed493ccb957bd48 (diff) | |
download | redis-d8d528e9926d712cf02617dcdb6e9bde90e4e49c.tar.gz |
quick and dirty fix for hiredis bug creating problem with the new redis-cli connect commmand. Also change prompt when redis-cli is not connected
Diffstat (limited to 'deps')
-rw-r--r-- | deps/hiredis/hiredis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/hiredis/hiredis.c b/deps/hiredis/hiredis.c index f0d78a0da..898b4d6af 100644 --- a/deps/hiredis/hiredis.c +++ b/deps/hiredis/hiredis.c @@ -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(); |