Commit 63fb92c1 authored by Evan Hunt's avatar Evan Hunt
Browse files

[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.
parent 907e01d6
......@@ -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) { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment