summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ufs
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2005-03-28 22:21:45 +0000
committerkan <kan@FreeBSD.org>2005-03-28 22:21:45 +0000
commit7d43aa0207e7404ef42ae30015e6bc2800580729 (patch)
treea8bca7502f7fec1643aaa5d43b67a55d67f8fada /sbin/mount_ufs
parentc2113e07302556ef0ad1359555bc232f236de226 (diff)
downloadFreeBSD-src-7d43aa0207e7404ef42ae30015e6bc2800580729.zip
FreeBSD-src-7d43aa0207e7404ef42ae30015e6bc2800580729.tar.gz
Initialize iovlen variable to 0 before passing it by reference to the
build_iovec function. Tripped over by: Craig Rodrigues
Diffstat (limited to 'sbin/mount_ufs')
-rw-r--r--sbin/mount_ufs/mount_ufs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mount_ufs/mount_ufs.c b/sbin/mount_ufs/mount_ufs.c
index e37eadc..ff8ab9d 100644
--- a/sbin/mount_ufs/mount_ufs.c
+++ b/sbin/mount_ufs/mount_ufs.c
@@ -115,6 +115,7 @@ main(int argc, char **argv)
(void)rmslashes(dev, dev);
iov = NULL;
+ iovlen = 0;
build_iovec(&iov, &iovlen, "fstype", "ufs", -1);
build_iovec(&iov, &iovlen, "fspath", mntpath, -1);
build_iovec(&iov, &iovlen, "from", dev, -1);
OpenPOWER on IntegriCloud