[U-Boot] [U-Boot, 2/4] fs: btrfs: Fix usage of uninitialized variables

Tom Rini trini at konsulko.com
Tue Oct 17 00:47:06 UTC 2017


On Fri, Oct 06, 2017 at 03:04:57PM +0200, Marek BehĂșn wrote:

> The variable res should be initialized to 0 in these functions,
> because if the searched key is not found, the variable is used
> uninitialized.
> 
> Reported-by: Coverity (CID: 167335)
> Reported-by: Coverity (CID: 167336)
> Reported-by: Coverity (CID: 167337)
> Signed-off-by: Marek Behun <marek.behun at nic.cz>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171016/b2a6f7ad/attachment.sig>


More information about the U-Boot mailing list