From 1848b1b15b9ed1eec044b1099b789707543cd642 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 21 Apr 2010 18:03:08 +0000 Subject: [PATCH] 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 --- iscsi-scst/usr/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/event.c b/iscsi-scst/usr/event.c index bcc9c08bb..784f8c67f 100644 --- a/iscsi-scst/usr/event.c +++ b/iscsi-scst/usr/event.c @@ -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);