From a99cc2fd0b56da03fdd086b1210e1bee1cb1c778 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 20 Feb 2015 12:35:06 +0100 Subject: address_types.c: fix a "conditional jump or move depends on uninitialised value" error found by Valgrind Change-Id: Ic752bb6aa1ba56e113895fcbed52f417ac0128f7 Reviewed-on: https://code.wireshark.org/review/7272 Reviewed-by: Pascal Quantin --- epan/address_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/address_types.c') diff --git a/epan/address_types.c b/epan/address_types.c index c88edc894f..0239399670 100644 --- a/epan/address_types.c +++ b/epan/address_types.c @@ -492,7 +492,7 @@ static int fcwwn_to_str(const address* addr, gchar *buf, int buf_len _U_) const guint8 *addrp = (const guint8*)addr->data; buf = bytes_to_hexstr_punct(buf, addrp, 8, ':'); /* 23 bytes */ - buf[23] = '\0'; + *buf = '\0'; return fcwwn_str_len(addr); } -- cgit v1.2.1