Initialize iovlen variable to 0 before passing it by reference to the

build_iovec function.

Tripped over by:	Craig  Rodrigues
This commit is contained in:
kan 2005-03-28 22:21:45 +00:00
parent c2113e0730
commit 7d43aa0207

View File

@ -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);