diff --git a/binfmt/binfmt_exec.c b/binfmt/binfmt_exec.c index 6ffc535a3fc51..e58d0ad8913b0 100644 --- a/binfmt/binfmt_exec.c +++ b/binfmt/binfmt_exec.c @@ -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 */