mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
cmd: upl: initialize unit test state
do_upl_write() calls upl_get_test_data() which may increment the fail count in the unit test state. We should initialize it. Addresses-Coverity-ID: 510465 Uninitialized scalar variable Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Neha Malcom Francis <n-francis@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
e54ddc32cf
commit
504f36ed7a
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static int do_upl_write(struct cmd_tbl *cmdtp, int flag, int argc,
|
|||
char *const argv[])
|
||||
{
|
||||
struct upl s_upl, *upl = &s_upl;
|
||||
struct unit_test_state uts;
|
||||
struct unit_test_state uts = { 0 };
|
||||
struct abuf buf;
|
||||
oftree tree;
|
||||
ulong addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue