summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciek Borzecki <maciek.borzecki@gmail.com>2015-05-12 22:06:56 +0200
committerAlan Antonuk <alan.antonuk@gmail.com>2015-05-14 21:39:43 -0700
commit9ee1718521fcfbd509d0f2896825c4d2d39fbfef (patch)
tree6486f73863c6d8504dba572508d8d8aa9ab279ca
parent9027a94d7e9639c7a56f8886118097eca5aae9b4 (diff)
downloadrabbitmq-c-9ee1718521fcfbd509d0f2896825c4d2d39fbfef.tar.gz
amqp_socket: res may be returned uninitialized
Remove scope local res variable that shadows the function local variable defined in amqp_socket.c:1118. This removes a possible branch point that triggered a return of uninitialized value.
-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 69ce658..7cde7be 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -1145,7 +1145,6 @@ int amqp_merge_capabilities(const amqp_table_t *base, const amqp_table_t *add,
if (NULL != e) {
if (AMQP_FIELD_KIND_TABLE == add->entries[i].value.kind &&
AMQP_FIELD_KIND_TABLE == e->value.kind) {
- int res;
amqp_table_entry_t *be =
amqp_table_get_entry_by_key(base, add->entries[i].key);