Fix compile error

'ret' may be used uninitialized

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-12-02 09:39:03 +08:00 committed by Xiang Xiao
parent 30940d9251
commit 2aaf6641a2

View file

@ -170,7 +170,7 @@ static int elf_emit_align(FAR struct elf_dumpinfo_s *cinfo)
ELF_PAGESIZE) - cinfo->stream->nput;
unsigned char null[256];
off_t total = align;
off_t ret;
off_t ret = 0;
memset(null, 0, sizeof(null));