summaryrefslogtreecommitdiff
path: root/wsutil/inet_ntop.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-03-27 00:32:57 +0000
committerJoão Valverde <j@v6e.pt>2016-04-04 23:58:41 +0000
commit7f873d92cb7038247ab578d14d7e4794dcd6d98b (patch)
tree1fa9d97f7b1576529242b77aa0a758cd360a6b1a /wsutil/inet_ntop.c
parentcd1d1377430aa50fb1363fad7ab9de7026b4f716 (diff)
downloadwireshark-7f873d92cb7038247ab578d14d7e4794dcd6d98b.tar.gz
Use AC_REPLACE_FUNCS and LTLIBOBJS
Change-Id: I0f46167fe900c39d678560809cd5391c2a9bc4d2 Reviewed-on: https://code.wireshark.org/review/14809 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 'wsutil/inet_ntop.c')
-rw-r--r--wsutil/inet_ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wsutil/inet_ntop.c b/wsutil/inet_ntop.c
index 3fe730bcc6..1d82f30142 100644
--- a/wsutil/inet_ntop.c
+++ b/wsutil/inet_ntop.c
@@ -125,6 +125,8 @@ inet_ntop6(const u_char *src, char *dst, size_t size)
* Copy the input (bytewise) array into a wordwise array.
* Find the longest run of 0x00's in src[] for :: shorthanding.
*/
+ memset(&best, 0, sizeof best);
+ memset(&cur, 0, sizeof cur);
memset(words, '\0', sizeof words);
for (i = 0; i < NS_IN6ADDRSZ; i++)
words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3));