summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2004-11-25 16:14:27 +0000
committerdelphij <delphij@FreeBSD.org>2004-11-25 16:14:27 +0000
commit8b37a26c64866fc472a011388a1f3a6729e88d37 (patch)
tree555794bdeef205170bd4df0801acfc15e635f0af /sbin
parent762f6433e76fe390f9ed9d2b2bde17abc2fca034 (diff)
downloadFreeBSD-src-8b37a26c64866fc472a011388a1f3a6729e88d37.zip
FreeBSD-src-8b37a26c64866fc472a011388a1f3a6729e88d37.tar.gz
Avoid comparing pointer against a numerical value by adding a * in
front of it. Reviewed by: phk
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/getmntopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index 2e8676d..d0880f9 100644
--- a/sbin/mount/getmntopts.c
+++ b/sbin/mount/getmntopts.c
@@ -145,7 +145,7 @@ build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, int le
{
int i;
- if (iovlen < 0)
+ if (*iovlen < 0)
return;
i = *iovlen;
*iov = realloc(*iov, sizeof **iov * (i + 2));
OpenPOWER on IntegriCloud