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:
Alexander Kabaev 2005-03-28 22:21:45 +00:00
parent ba9f795c74
commit 0c775f53a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144258

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