summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-08-19 21:05:39 +0100
committerRoy Marples <roy@marples.name>2018-08-19 21:05:39 +0100
commit9843139fc2f1c07cfe5a6eca3a5915070e064331 (patch)
tree21493a5b6bc924b88310cb90e9223af792a80772 /src/ipv6.c
parente5b3f0d2e309002f9f19afe47ac0a4097ee69387 (diff)
downloaddhcpcd-9843139fc2f1c07cfe5a6eca3a5915070e064331.tar.xz
Consistency
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 8a2cb9f8..49de6860 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -430,7 +430,7 @@ ipv6_mask(struct in6_addr *mask, int len)
bits = len % NBBY;
for (i = 0; i < bytes; i++)
mask->s6_addr[i] = 0xff;
- if (bits) {
+ if (bits != 0) {
/* Coverify false positive.
* bytelen cannot be 16 if bitlen is non zero */
/* coverity[overrun-local] */