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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
Geert Uytterhoeven 2010-09-30 22:06:21 +02:00 committed by Miklos Szeredi
parent 899611ee7d
commit 0157443c56
1 changed files with 1 additions and 1 deletions

View File

@ -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))