]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bloblist: Fix use of uninitialized variable
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 23 Oct 2024 13:20:18 +0000 (15:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 23:24:13 +0000 (17:24 -0600)
Initialize addr to zero which allows to build on the CI
which is more strict.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/bloblist.c

index 2008ab4d25c8923d10aa07c8dab9c83276ef85f1..cf1a3b8b62cd9cc1598739d1387ffc17ac13aab1 100644 (file)
@@ -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.