Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8aa84ab99b1e47973f0b82258f0eab945d0b114d
Commit:     8aa84ab99b1e47973f0b82258f0eab945d0b114d
Parent:     800fdfb90ab4a172a46e45b7cc5e1670a54f44bc
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 8 04:20:52 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 09:22:36 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 fs/hfsplus/unicode.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fs/hfsplus/unicode.c b/fs/hfsplus/unicode.c
index 9e10f94..628ccf6 100644
--- a/fs/hfsplus/unicode.c
+++ b/fs/hfsplus/unicode.c
@@ -325,7 +325,7 @@ int hfsplus_hash_dentry(struct dentry *dentry, struct qstr 
*str)
        struct super_block *sb = dentry->d_sb;
        const char *astr;
        const u16 *dstr;
-       int casefold, decompose, size, dsize, len;
+       int casefold, decompose, size, len;
        unsigned long hash;
        wchar_t c;
        u16 c2;
@@ -336,6 +336,7 @@ int hfsplus_hash_dentry(struct dentry *dentry, struct qstr 
*str)
        astr = str->name;
        len = str->len;
        while (len > 0) {
+               int uninitialized_var(dsize);
                size = asc2unichar(sb, astr, len, &c);
                astr += size;
                len -= size;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to