Fix bug in options macro

This commit is contained in:
Mark Nunberg 2018-12-06 04:54:29 -05:00
parent deba8d956d
commit 53d9b12b76
1 changed files with 1 additions and 1 deletions

View File

@ -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; \