mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
misc: fs_loader: Initialize actread variable
Initialize the actread variable to prevent undefined behavior that can occur if the variable is used before being assigned a value. This will help to prevent potential issues, especially if actread is used (e.g., read, incremented, or returned) before being explicitly set elsewhere in the code. Signed-off-by: Alif Zakuan Yuslaimi <alif.zakuan.yuslaimi@altera.com>
This commit is contained in:
committed by
Tom Rini
parent
e0f9a4fb57
commit
a3f0a8e7a1
@@ -148,7 +148,7 @@ static int _request_firmware_prepare(struct udevice *dev,
|
||||
*/
|
||||
static int fw_get_filesystem_firmware(struct udevice *dev)
|
||||
{
|
||||
loff_t actread;
|
||||
loff_t actread = 0;
|
||||
char *storage_interface, *dev_part, *ubi_mtdpart, *ubi_volume;
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user