Skip to content

Commit

Permalink
fuse: Initialize total_len in fuse_retrieve()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
  • Loading branch information
geertu authored and Miklos Szeredi committed Oct 4, 2010
1 parent 899611e commit 0157443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0157443

Please sign in to comment.