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
ba9f795c74
commit
0c775f53a7
@ -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…
Reference in New Issue
Block a user