OSDN Git Service

inet_ntop4: avoid inline initialization
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Oct 2009 04:41:29 +0000 (00:41 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Oct 2009 04:41:29 +0000 (00:41 -0400)
commit829779686b0a263ad3582aecc1cc7a296c38a1c9
treeb005ce4a0d4f7d98eefb71bc15d6fc3d9b690854
parentbc5922f17d546bbd82644d0be03bb078bba1f85f
inet_ntop4: avoid inline initialization

We only need to set the first byte to 0, but gcc likes to zero out the
rest of the string with memset() when using this initialization style.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/inet/ntop.c