summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Rudolph <[email protected]>2024-10-23 15:20:18 +0200
committerTom Rini <[email protected]>2024-10-27 17:24:13 -0600
commitb36f62946467f2c923d351547ec5f0f720e9ec90 (patch)
tree84e8e638e1a25814ec01892cf57d3dedb32b9292
parent3cc4123ed50b1b6d2ddaf1886dd70d7b8bf8b6a6 (diff)
bloblist: Fix use of uninitialized variable
Initialize addr to zero which allows to build on the CI which is more strict. Signed-off-by: Patrick Rudolph <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--common/bloblist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bloblist.c b/common/bloblist.c
index 2008ab4d25c..cf1a3b8b62c 100644
--- a/common/bloblist.c
+++ b/common/bloblist.c
@@ -499,7 +499,7 @@ int bloblist_init(void)
{
bool fixed = IS_ENABLED(CONFIG_BLOBLIST_FIXED);
int ret = -ENOENT;
- ulong addr, size;
+ ulong addr = 0, size;
/*
* If U-Boot is not in the first phase, an existing bloblist must be
* at a fixed address.