libelf: fix "nsh: nsh_session: readline failed: 13" error

Resolves issue #3751
This commit is contained in:
Alexander Lunev 2021-05-20 21:53:57 +03:00 committed by David Sidrane
parent e4fd99682e
commit 4018cc186c

View file

@ -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. */