forked from nuttx/nuttx-update
binfmt/exec: initialize binary_s to empty to avoid invaild access
Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
4e9702c7fb
commit
7b85272b08
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ static int exec_internal(FAR const char *filename,
|
|||
struct binary_s sbin;
|
||||
|
||||
bin = &sbin;
|
||||
memset(bin, 0, sizeof(*bin));
|
||||
#else
|
||||
|
||||
/* Allocate the load information */
|
||||
|
|
Loading…
Reference in a new issue