summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/cbfstool/cbfs_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs_image.c b/util/cbfstool/cbfs_image.c
index 1e38e4ea8b..9e63692f47 100644
--- a/util/cbfstool/cbfs_image.c
+++ b/util/cbfstool/cbfs_image.c
@@ -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;