mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
Initialize iov and iovlen before use.
Reported by: Lucius Windschuh <lwindschuh@googlemail.com>
This commit is contained in:
parent
f93bfb23dc
commit
923f9901b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193333
@ -112,6 +112,8 @@ main(int argc, char **argv)
|
||||
if ((grp = getgrnam("operator")) == NULL)
|
||||
errx(1, "Cannot retrieve operator gid");
|
||||
|
||||
iov = NULL;
|
||||
iovlen = 0;
|
||||
build_iovec(&iov, &iovlen, "fstype", "ffs", 4);
|
||||
build_iovec(&iov, &iovlen, "from", snapname, (size_t)-1);
|
||||
build_iovec(&iov, &iovlen, "fspath", stfsbuf.f_mntonname, (size_t)-1);
|
||||
|
Loading…
Reference in New Issue
Block a user