]> git.ipfire.org Git - thirdparty/u-boot.git/commit
boot: Ensure method_flags is initialised before use
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Wed, 9 Jul 2025 11:49:09 +0000 (12:49 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 16 Jul 2025 16:56:28 +0000 (10:56 -0600)
commitf1c03778a4be8e08decf88f6b2018b90f6662090
treecde5b39468a19bc3cc3ca2a18348839b7db9a5ba
parent343a30aba38f753161b8c5007898211cc9d43b2a
boot: Ensure method_flags is initialised before use

The local variable method_flags is only assigned to in some of the
code paths leaving it possibly uninitialised at first use.
Initialise method_flags at declaration to ensure that it cannot be
used uninitialised. Also remove now redundant assignments.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
boot/bootflow.c