Fix an error in exec(). argv[] has not being passed

This commit is contained in:
Gregory Nutt 2014-06-15 13:22:44 -06:00
parent 9d78279173
commit 5df891ff28

View file

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