diff options
author | Ivan Skytte Jørgensen <isj-nedit-dev@i1.dk> | 2015-10-17 19:48:02 +0200 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2015-10-19 21:06:29 -0700 |
commit | 882cf808577156ece6d008ef210a490049634ab3 (patch) | |
tree | 649fcdb23858f8296f4ebbb386fec101242b0d67 | |
parent | 197a5d3973c65e5c0d55c1fb25da02a11192fd0b (diff) | |
download | rabbitmq-c-882cf808577156ece6d008ef210a490049634ab3.tar.gz |
Lib: remove pointless initialization of last_error
Don't initialize local variable last_error because it is immediately assigned to
and value is not used.
-rw-r--r-- | librabbitmq/amqp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c index 439d18d..1b64a97 100644 --- a/librabbitmq/amqp_socket.c +++ b/librabbitmq/amqp_socket.c @@ -430,7 +430,7 @@ int amqp_open_socket_inner(char const *hostname, struct addrinfo *addr; char portnumber_string[33]; int sockfd = -1; - int last_error = AMQP_STATUS_OK; + int last_error; int one = 1; /* for setsockopt */ int res; |