2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

[master] fix false positive compiler warning

a "pointer always evaluates to true" warning was blocking
compilation of the radix ATF test when using --enable-developer
with gcc 4.8.2.
This commit is contained in:
Evan Hunt 2014-11-15 00:56:30 -08:00
parent 907e01d6f3
commit 63fb92c1ba

View File

@ -34,8 +34,9 @@
#define NETADDR_TO_PREFIX_T(na,pt,bits,is_ecs) \
do { \
const void *p = na; \
memset(&(pt), 0, sizeof(pt)); \
if((na) != NULL) { \
if (p != NULL) { \
(pt).family = (na)->family; \
(pt).bitlen = (bits); \
if ((pt).family == AF_INET6) { \