mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 09:49:21 +08:00
libelf: fix "nsh: nsh_session: readline failed: 13" error
Resolves issue #3751
This commit is contained in:
parent
e4fd99682e
commit
4018cc186c
1 changed files with 1 additions and 0 deletions
|
@ -134,6 +134,7 @@ int elf_init(FAR const char *filename, FAR struct elf_loadinfo_s *loadinfo)
|
|||
/* Clear the load info structure */
|
||||
|
||||
memset(loadinfo, 0, sizeof(struct elf_loadinfo_s));
|
||||
loadinfo->filfd = -1;
|
||||
|
||||
/* Get the length of the file. */
|
||||
|
||||
|
|
Loading…
Reference in a new issue