projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
899611e
)
fuse: Initialize total_len in fuse_retrieve()
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Thu, 30 Sep 2010 20:06:21 +0000
(22:06 +0200)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Mon, 4 Oct 2010 08:45:32 +0000
(10:45 +0200)
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>
fs/fuse/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index d367af1514efe696b50a73374fffe77784c65b6a..cde755cca5642d41fb9cbbe05ac2d01f70f53c69 100644
(file)
--- a/
fs/fuse/dev.c
+++ b/
fs/fuse/dev.c
@@
-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))