diff options
author | kan <kan@FreeBSD.org> | 2005-03-28 22:21:45 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2005-03-28 22:21:45 +0000 |
commit | 7d43aa0207e7404ef42ae30015e6bc2800580729 (patch) | |
tree | a8bca7502f7fec1643aaa5d43b67a55d67f8fada | |
parent | c2113e07302556ef0ad1359555bc232f236de226 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sbin/mount_ufs/mount_ufs.c | 1 |
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); |