]> The Tcpdump Group git mirrors - libpcap/commit
Only initialize np to NULL for Linux's getnetbyname_r().
authorGuy Harris <[email protected]>
Tue, 23 Oct 2018 08:35:56 +0000 (01:35 -0700)
committerGuy Harris <[email protected]>
Tue, 23 Oct 2018 08:35:56 +0000 (01:35 -0700)
commit2954b59a01a2e5f5a3305e900659e9f2807cc875
tree737421b35b3cd35d0af3968dce188e0684920f06
parent9a66fd0ba5a157f602fdb5bfdb4ffc53d1971bae
Only initialize np to NULL for Linux's getnetbyname_r().

That's the only case where it's set via a pointer rather than being set
to the return address of the function, so it's the only case where it
isn't guaranteed to be set (the man page nonwithstanding).

Put in a comment explaining *why* we're setting it.
nametoaddr.c