diff options
author | Mark Nunberg <mnunberg@haskalah.org> | 2018-12-06 04:54:29 -0500 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-20 09:10:10 -0500 |
commit | 53d9b12b76858bb236113628ad8585abbccd9f87 (patch) | |
tree | 991fc5d982d09d7d92933f4f00579445e0bbc868 | |
parent | deba8d956d578547319919adedda4714f779dbb9 (diff) |
Fix bug in options macro
-rw-r--r-- | hiredis.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |