common: env: initialize scalar variable
authorPeng Fan <peng.fan@nxp.com>
Wed, 23 Dec 2015 04:07:24 +0000 (12:07 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 4 Jan 2016 17:25:35 +0000 (12:25 -0500)
commit5a6894397a657edec5d0cf4e20968cc66a368c51
tree8c3329a5f32d195b2b9161b72000f619c35a804d
parent09a788624dbe32aeeb0d74c97c0965303eb96d8c
common: env: initialize scalar variable

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@nxp.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
common/env_callback.c
common/env_flags.c