Fix an error in exec(). argv[] has not being passed
This commit is contained in:
parent
9d78279173
commit
5df891ff28
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue