libelf: fix "nsh: nsh_session: readline failed: 13" error
Resolves issue #3751
This commit is contained in:
parent
e4fd99682e
commit
4018cc186c
@ -134,6 +134,7 @@ int elf_init(FAR const char *filename, FAR struct elf_loadinfo_s *loadinfo)
|
|||||||
/* Clear the load info structure */
|
/* Clear the load info structure */
|
||||||
|
|
||||||
memset(loadinfo, 0, sizeof(struct elf_loadinfo_s));
|
memset(loadinfo, 0, sizeof(struct elf_loadinfo_s));
|
||||||
|
loadinfo->filfd = -1;
|
||||||
|
|
||||||
/* Get the length of the file. */
|
/* Get the length of the file. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user