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:
parent
c2113e0730
commit
7d43aa0207
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user