diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 14:04:00 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 14:11:26 -0700 |
commit | c2a47b08afdfb75bbdd7dec62336bd0a04346628 (patch) | |
tree | 6b01cd36d1823434a359cde46d253c7a7d6733a8 /lib/fuse_lowlevel.c | |
parent | 115b7b2cf35addd555a5038267c555d772948d98 (diff) |
Fix valgrind warning
If we don't assign a value to padding, we get a warning about reading
uninitialized data when sending the iovec to the kernel.
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 4ad5daf..8d4ad36 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2279,6 +2279,7 @@ int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino, outarg.nodeid = ino; outarg.offset = offset; outarg.size = size; + outarg.padding = 0; iov[1].iov_base = &outarg; iov[1].iov_len = sizeof(outarg); |