diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-15 13:22:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-15 13:22:44 -0600 |
commit | a4017cd2c995ccedae2e604294b1c1f4736e08b5 (patch) | |
tree | a3652d00bcb2c27ae9a64c7787410655ddd119d9 /nuttx/binfmt | |
parent | 70b01d5396e2931ade9452925dc1e96be2318012 (diff) | |
download | px4-nuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.tar.gz px4-nuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.tar.bz2 px4-nuttx-a4017cd2c995ccedae2e604294b1c1f4736e08b5.zip |
Fix an error in exec(). argv[] has not being passed
Diffstat (limited to 'nuttx/binfmt')
-rw-r--r-- | nuttx/binfmt/binfmt_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/binfmt/binfmt_exec.c b/nuttx/binfmt/binfmt_exec.c index c175de3b9..446df6373 100644 --- a/nuttx/binfmt/binfmt_exec.c +++ b/nuttx/binfmt/binfmt_exec.c @@ -80,7 +80,7 @@ * exits. * * Input Parameter: - * filename - Fulll path to the binary to be loaded + * filename - Full path to the binary to be loaded * argv - Argument list * exports - Table of exported symbols * nexports - The number of symbols in exports @@ -112,6 +112,7 @@ int exec(FAR const char *filename, FAR char * const *argv, /* Load the module into memory */ bin->filename = filename; + bin->argv = argv; bin->exports = exports; bin->nexports = nexports; @@ -189,4 +190,3 @@ int exec(FAR const char *filename, FAR char * const *argv, } #endif /* CONFIG_BINFMT_DISABLE */ - |