mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
fs/hfsplus/unicode.c: fix uninitialized var warning
fs/hfsplus/unicode.c: In function 'hfsplus_hash_dentry': fs/hfsplus/unicode.c:328: warning: 'dsize' may be used uninitialized in this function Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
800fdfb90a
commit
8aa84ab99b
1 changed files with 2 additions and 1 deletions
|
@ -325,7 +325,7 @@ int hfsplus_hash_dentry(struct dentry *dentry, struct qstr *str)
|
||||||
struct super_block *sb = dentry->d_sb;
|
struct super_block *sb = dentry->d_sb;
|
||||||
const char *astr;
|
const char *astr;
|
||||||
const u16 *dstr;
|
const u16 *dstr;
|
||||||
int casefold, decompose, size, dsize, len;
|
int casefold, decompose, size, len;
|
||||||
unsigned long hash;
|
unsigned long hash;
|
||||||
wchar_t c;
|
wchar_t c;
|
||||||
u16 c2;
|
u16 c2;
|
||||||
|
@ -336,6 +336,7 @@ int hfsplus_hash_dentry(struct dentry *dentry, struct qstr *str)
|
||||||
astr = str->name;
|
astr = str->name;
|
||||||
len = str->len;
|
len = str->len;
|
||||||
while (len > 0) {
|
while (len > 0) {
|
||||||
|
int uninitialized_var(dsize);
|
||||||
size = asc2unichar(sb, astr, len, &c);
|
size = asc2unichar(sb, astr, len, &c);
|
||||||
astr += size;
|
astr += size;
|
||||||
len -= size;
|
len -= size;
|
||||||
|
|
Loading…
Reference in a new issue