inet_ntop: silence gcc warning
authorEric Blake <eblake@redhat.com>
Wed, 11 Jan 2012 21:48:31 +0000 (14:48 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 11 Jan 2012 21:48:31 +0000 (14:48 -0700)
commite4196e8dce983586517ee1f25efbbf77ee14c439
treea41d8ca089aace89a8e1a87997da43c1d85d32a3
parent92f1c30e37851a1d32330febc0dfd2548f3f64c5
inet_ntop: silence gcc warning

gcc -O2 couldn't tell that if best.base != -1, then best.len
was necessarily initialized.

* lib/inet_ntop.c (inet_ntop6): Initialize best.base.
Reported by Daniel P. Berrange.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/inet_ntop.c