Commit 0157443c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Miklos Szeredi

fuse: Initialize total_len in fuse_retrieve()

fs/fuse/dev.c:1357: warning: ‘total_len’ may be used uninitialized in this
function

Initialize total_len to zero, else its value will be undefined.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 899611ee
......@@ -1354,7 +1354,7 @@ static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode,
loff_t file_size;
unsigned int num;
unsigned int offset;
size_t total_len;
size_t total_len = 0;
req = fuse_get_req(fc);
if (IS_ERR(req))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment