[U-Boot] [U-Boot,V2] common: env: initialize scalar variable
Tom Rini
trini at konsulko.com
Mon Jan 4 23:23:29 CET 2016
On Wed, Dec 23, 2015 at 12:07:24PM +0800, Peng Fan wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Before calling hsearch_r, initialize callback entry to NULL.
>
> Coverity log:
> "
> Uninitialized scalar variable (UNINIT)
> uninit_use_in_call: Using uninitialized value e.
> Field e.callback is uninitialized when calling hsearch_r.
> "
>
> Reported-by: Coverity
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160104/b8ff99c6/attachment.sig>
More information about the U-Boot
mailing list