From 53d9b12b76858bb236113628ad8585abbccd9f87 Mon Sep 17 00:00:00 2001 From: Mark Nunberg Date: Thu, 6 Dec 2018 04:54:29 -0500 Subject: [PATCH] Fix bug in options macro --- hiredis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; \