-Wshadow sh fix from Jeff Garzik
This commit is contained in:
parent
8ffaf8d139
commit
82ab8da245
4
lash.c
4
lash.c
@ -1560,9 +1560,9 @@ static int pseudo_exec(struct child_prog *child)
|
||||
#endif
|
||||
|
||||
{
|
||||
char** argv=child->argv;
|
||||
char** argv_l=child->argv;
|
||||
int argc_l;
|
||||
for(argc_l=0;*argv!=NULL; argv++, argc_l++);
|
||||
for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
|
||||
optind = 1;
|
||||
run_applet_by_name(name, argc_l, child->argv);
|
||||
}
|
||||
|
4
sh.c
4
sh.c
@ -1560,9 +1560,9 @@ static int pseudo_exec(struct child_prog *child)
|
||||
#endif
|
||||
|
||||
{
|
||||
char** argv=child->argv;
|
||||
char** argv_l=child->argv;
|
||||
int argc_l;
|
||||
for(argc_l=0;*argv!=NULL; argv++, argc_l++);
|
||||
for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
|
||||
optind = 1;
|
||||
run_applet_by_name(name, argc_l, child->argv);
|
||||
}
|
||||
|
@ -1560,9 +1560,9 @@ static int pseudo_exec(struct child_prog *child)
|
||||
#endif
|
||||
|
||||
{
|
||||
char** argv=child->argv;
|
||||
char** argv_l=child->argv;
|
||||
int argc_l;
|
||||
for(argc_l=0;*argv!=NULL; argv++, argc_l++);
|
||||
for(argc_l=0;*argv_l!=NULL; argv_l++, argc_l++);
|
||||
optind = 1;
|
||||
run_applet_by_name(name, argc_l, child->argv);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user