Initialize the variable properly before passing to any function
authorLaszlo Papp <ext-laszlo.papp@nokia.com>
Mon, 7 Mar 2011 09:30:07 +0000 (11:30 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 30 Mar 2011 17:34:58 +0000 (19:34 +0200)
lib/mount.c

index 8065087d4a1deeffe06ae1dae4c5114b944785ad..0e585a43665e3733e6ac698a6a133ac1fd32fa89 100644 (file)
@@ -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;