]> git.karo-electronics.de Git - linux-beck.git/commit
ubifs: Initialize fstr_real_len
authorRichard Weinberger <richard@nod.at>
Wed, 14 Dec 2016 10:09:25 +0000 (11:09 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 14 Dec 2016 16:39:21 +0000 (17:39 +0100)
commitba75d570b60c05cda21c0b43c5fbdc4e344f892d
treeaf08ba1fbf4d5a0d650eb6eccfbb59623c8ac7fa
parentec9160dacdb08eaeb40a878db97dfed6c2212d91
ubifs: Initialize fstr_real_len

While fstr_real_len is only being used under if (encrypted),
gcc-6 still warns.

Fixes this false positive:
fs/ubifs/dir.c: In function 'ubifs_readdir':
fs/ubifs/dir.c:629:13: warning: 'fstr_real_len' may be used
uninitialized in this function [-Wmaybe-uninitialized]
    fstr.len = fstr_real_len

Initialize fstr_real_len to make gcc happy.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/dir.c