projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e63a9d8
)
Initialize the variable properly before passing to any function
author
Laszlo Papp
<ext-laszlo.papp@nokia.com>
Mon, 7 Mar 2011 09:30:07 +0000
(11:30 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 30 Mar 2011 17:34:58 +0000
(19:34 +0200)
lib/mount.c
patch
|
blob
|
history
diff --git
a/lib/mount.c
b/lib/mount.c
index 8065087d4a1deeffe06ae1dae4c5114b944785ad..0e585a43665e3733e6ac698a6a133ac1fd32fa89 100644
(file)
--- 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;