aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-couchbase.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-05 12:39:09 +0100
committerJoão Valverde <j@v6e.pt>2017-09-05 22:31:01 +0000
commit299bd4628a9aa8e6ea2c8772576e171f100da001 (patch)
tree720e18f0b888fdba994a89cf959f6fdf4e6edf71 /epan/dissectors/packet-couchbase.c
parent0dee5c1911337e1cb8d8836eb6aec8b8abd72fa0 (diff)
Fix unitialized variable warnings that popped up with -Og
Using GCC version 7.1.1. Change-Id: I7447a48fc97efb1eb15a016a29165f69d37f40a6 Reviewed-on: https://code.wireshark.org/review/23399 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/dissectors/packet-couchbase.c')
-rw-r--r--epan/dissectors/packet-couchbase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-couchbase.c b/epan/dissectors/packet-couchbase.c
index ae03779ae5..22168e0634 100644
--- a/epan/dissectors/packet-couchbase.c
+++ b/epan/dissectors/packet-couchbase.c
@@ -1774,7 +1774,7 @@ dissect_value(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
} else if (request && opcode == PROTOCOL_BINARY_CMD_CREATE_BUCKET) {
gint sep, equals_pos, sep_pos, config_len;
- proto_tree *key_tree, *config_tree;
+ proto_tree *key_tree, *config_tree = NULL;
/* There are 2 main items stored in the value. The bucket type (represented by a path to the engine) and the
* bucket config. These are separated by a NULL byte with the bucket type coming first.*/