Skip to content
Snippets Groups Projects
Commit bd1b5094 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Trivial binfmt logic clean-up

parent 66dbce8c
No related branches found
No related tags found
No related merge requests found
......@@ -124,8 +124,6 @@ static inline int binfmt_copyargv(FAR struct binary_s *bin, FAR char * const *ar
/* Allocate the argv array and an argument buffer */
i = 0;
if (argsize > 0)
{
argvsize = (nargs + 1) * sizeof(FAR char *);
......@@ -140,7 +138,7 @@ static inline int binfmt_copyargv(FAR struct binary_s *bin, FAR char * const *ar
bin->argv = (FAR char **)bin->argbuffer;
ptr = bin->argbuffer + argvsize;
for (; argv[i]; i++)
for (i = 0; argv[i]; i++)
{
bin->argv[i] = ptr;
argsize = strlen(argv[i]) + 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment