From 4b904296405c888dde38c4e10818714f8165bced Mon Sep 17 00:00:00 2001 From: Mark Nunberg Date: Wed, 20 Feb 2019 04:50:02 -0500 Subject: [PATCH] Remove redundant line after rebase --- net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net.c b/net.c index 45dca7a..3cd0402 100644 --- a/net.c +++ b/net.c @@ -502,7 +502,6 @@ int redisContextConnectUnix(redisContext *c, const char *path, const struct time sa = (struct sockaddr_un*)(c->saddr = malloc(sizeof(struct sockaddr_un))); c->addrlen = sizeof(struct sockaddr_un); sa->sun_family = AF_UNIX; - c->addrlen = sizeof(*sa); strncpy(sa->sun_path, path, sizeof(sa->sun_path) - 1); if (connect(c->fd, (struct sockaddr*)sa, sizeof(*sa)) == -1) { if (errno == EINPROGRESS && !blocking) {