summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_socket.c
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2014-07-27 22:08:25 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2014-07-27 22:08:25 -0700
commit4dc4eda0b0f87e903bbb67aab9a772a184bf3054 (patch)
tree8d51d1e64ed6b235a2715e757fc2b98ba34faed1 /librabbitmq/amqp_socket.c
parent6b552b5cbbf4522bf92cfcc1e258541a7a6e8e8a (diff)
downloadrabbitmq-c-4dc4eda0b0f87e903bbb67aab9a772a184bf3054.tar.gz
Fix: remove superfulous assignment in amqp_socket.c
sockfd is assigned, then assigned again unconditionally without being read from. There's no point in this statement, so lets get rid of it.
Diffstat (limited to 'librabbitmq/amqp_socket.c')
-rw-r--r--librabbitmq/amqp_socket.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index 154c464..660ebbb 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -308,7 +308,6 @@ int amqp_open_socket_noblock(char const *hostname,
for (addr = address_list; addr; addr = addr->ai_next) {
if (-1 != sockfd) {
amqp_os_socket_close(sockfd);
- sockfd = -1;
}
sockfd = amqp_os_socket_socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);