Code

inet_ntop.c: Work around GCC 4.6's detection of uninitialized variables
authorSebastian Schuberth <sschuberth@gmail.com>
Tue, 18 Oct 2011 16:25:50 +0000 (18:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Oct 2011 17:34:07 +0000 (10:34 -0700)
commit185528a859170a659ae8359d13540211775e3056
tree77cd21ec4b3e0d5a4996a334bff1f612f46de495
parentbb34c5aabe9f8d86a40d5ab8518fc78602264179
inet_ntop.c: Work around GCC 4.6's detection of uninitialized variables

GCC 4.6 claims that

    error: 'best.len' may be used uninitialized in this function

so silence that warning which is treated as an error by also initializing
the "len" members of the struct.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/inet_ntop.c