cbfstool/cbfs_image: Initialze empty_sz to 0
Change-Id: I8b9cfe56b5893ba11047fcc1a6727e7e12a15772 Signed-off-by: Furquan Shaikh <furquan@google.com> Found-by: Coverity Scan # 1361276 Reviewed-on: https://review.coreboot.org/16071 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
61486b506d
commit
f3bba44a04
|
@ -1049,7 +1049,6 @@ static int cbfs_payload_make_elf(struct buffer *buff, uint32_t arch)
|
|||
struct cbfs_payload_segment *segs;
|
||||
struct elf_writer *ew;
|
||||
struct buffer elf_out;
|
||||
size_t empty_sz;
|
||||
int segments = 0;
|
||||
|
||||
if (arch == CBFS_ARCHITECTURE_UNKNOWN) {
|
||||
|
@ -1115,6 +1114,7 @@ static int cbfs_payload_make_elf(struct buffer *buff, uint32_t arch)
|
|||
|
||||
for (int i = 0; i < segments; i++) {
|
||||
struct buffer tbuff;
|
||||
size_t empty_sz = 0;
|
||||
|
||||
memset(&shdr, 0, sizeof(shdr));
|
||||
char *name = NULL;
|
||||
|
|
Loading…
Reference in New Issue