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:
Vladislav Bolkhovitin
2010-04-21 18:03:08 +00:00
parent eb05cb541e
commit 1848b1b15b
+1 -1
View File
@@ -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);