forked from nuttx/nuttx-update
Fix compile error
'ret' may be used uninitialized Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
30940d9251
commit
2aaf6641a2
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue