From 9deaced060e35695c8bd918080e4f09e1f035b58 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Mon, 7 Mar 2011 11:30:07 +0200 Subject: [PATCH] Initialize the variable properly before passing to any function --- lib/mount.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2