[U-Boot] [PATCH 1/1] common: env: initialize scalar variable
Peng Fan
van.freenix at gmail.com
Wed Dec 23 04:07:23 CET 2015
Hi Wolfgang
On Tue, Dec 22, 2015 at 10:29:51AM +0100, Wolfgang Denk wrote:
>Dear Peng Fan,
>
>In message <1450775655-2979-2-git-send-email-van.freenix at gmail.com> you wrote:
>> From: Peng Fan <peng.fan at nxp.com>
>>
>> Before calling hsearch_r, initialize callback entry to NULL.
>
>Which exact problem are you fixing here?
This was reported by Coverity.
"
Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value e. Field e.callback is uninitialized when calling hsearch_r.
"
I'll add more commit log in V2.
Regards,
Peng.
>
>Best regards,
>
>Wolfgang Denk
>
>--
>DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
>Beware of the Turing Tar-pit in which everything is possible but
>nothing of interest is easy.
More information about the U-Boot
mailing list