mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 21:56:31 +00:00
Merge of IET r240: Fix use of uninitialised data in nl_write()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1642 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -42,7 +42,7 @@ static int nl_write(int fd, void *data, int len)
|
||||
{
|
||||
struct iovec iov[2];
|
||||
struct msghdr msg;
|
||||
struct nlmsghdr nlh;
|
||||
struct nlmsghdr nlh = {0};
|
||||
|
||||
iov[0].iov_base = &nlh;
|
||||
iov[0].iov_len = sizeof(nlh);
|
||||
|
||||
Reference in New Issue
Block a user