summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorMark Nunberg <mnunberg@haskalah.org>2018-12-06 04:54:29 -0500
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 09:10:10 -0500
commit53d9b12b76858bb236113628ad8585abbccd9f87 (patch)
tree991fc5d982d09d7d92933f4f00579445e0bbc868 /hiredis.h
parentdeba8d956d578547319919adedda4714f779dbb9 (diff)
Fix bug in options macro
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 621ea5b..bb9b6a7 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -153,7 +153,7 @@ typedef struct {
#define REDIS_OPTIONS_SET_TCP(opts, ip_, port_) \
(opts)->type = REDIS_CONN_TCP; \
(opts)->endpoint.tcp.ip = ip_; \
- (opts)->endpoint.tcp.port = port;
+ (opts)->endpoint.tcp.port = port_;
#define REDIS_OPTIONS_SET_UNIX(opts, path) \
(opts)->type = REDIS_CONN_UNIX; \