diff options
author | Laszlo Papp <ext-laszlo.papp@nokia.com> | 2011-03-07 11:30:07 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-30 19:34:58 +0200 |
commit | 9deaced060e35695c8bd918080e4f09e1f035b58 (patch) | |
tree | b41ff84c2be575bba1f1ead1060859a946bc44a5 /lib/mount.c | |
parent | e63a9d8ee6529c9d15a87745276f45c9bdad3961 (diff) |
Initialize the variable properly before passing to any function
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mount.c b/lib/mount.c index 8065087..0e585a4 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -253,6 +253,7 @@ static int receive_fd(int fd) iov.iov_base = buf; iov.iov_len = 1; + memset(&msg, 0, sizeof(msg)); msg.msg_name = 0; msg.msg_namelen = 0; msg.msg_iov = &iov; |