diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2006-02-03 03:04:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 08:32:05 -0800 |
commit | dfa08592ca0440d793ecc8dfc6277dd2aa4b8dda (patch) | |
tree | 93bcf1323962aba32957093d6f04c0c8cdbb41fe /fs/ext3 | |
parent | 9d923a0603b5909a6758cfaec503955775cb7ab1 (diff) | |
download | linux-3.10-dfa08592ca0440d793ecc8dfc6277dd2aa4b8dda.tar.gz linux-3.10-dfa08592ca0440d793ecc8dfc6277dd2aa4b8dda.tar.bz2 linux-3.10-dfa08592ca0440d793ecc8dfc6277dd2aa4b8dda.zip |
[PATCH] Fix two ext[23] uninitialized warnings
There is a code path that passed size to ext2_xattr_set
(ext3_xattr_set_handle) before initializing it. The callees don't use the
value in that case, but gcc cannot tell. Always initialize size to get rid
of the warnings.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/acl.c b/fs/ext3/acl.c index 47a9da2dfb4..0d21d558b87 100644 --- a/fs/ext3/acl.c +++ b/fs/ext3/acl.c @@ -226,7 +226,7 @@ ext3_set_acl(handle_t *handle, struct inode *inode, int type, struct ext3_inode_info *ei = EXT3_I(inode); int name_index; void *value = NULL; - size_t size; + size_t size = 0; int error; if (S_ISLNK(inode->i_mode)) |