mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 23:36:59 +02:00
cmd: ufetch: Initialise size before first use
The local variable size is not assigned to before it is used
for the first time. Correct this.
This issue was found by Smatch.
Fixes: 86d462c05d
(cmd: add a fetch utility)
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Casey Connolly <casey.connolly@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Link: https://lore.kernel.org/r/20250626-ufetch_fix-v1-1-025afdb85dc2@linaro.org
Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
This commit is contained in:
parent
d8da51a87c
commit
8830e72092
@ -93,7 +93,7 @@ static int do_ufetch(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
const char *model, *compatible;
|
||||
char *ipaddr;
|
||||
int n_cmds, n_cpus = 0, compatlen;
|
||||
size_t size;
|
||||
size_t size = 0;
|
||||
ofnode np;
|
||||
bool skip_ascii = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user