The "no }" error with find | xargs sed is because toy_init() wasn't blanking the GLOBALS() block on a recursive call. (How that ever worked...)
This commit is contained in:
parent
1f44b5f0b2
commit
1e2399b91c
1
main.c
1
main.c
@ -116,6 +116,7 @@ void toy_init(struct toy_list *which, char *argv[])
|
|||||||
|
|
||||||
if (toys.optargs != toys.argv+1) free(toys.optargs);
|
if (toys.optargs != toys.argv+1) free(toys.optargs);
|
||||||
memset(&toys, 0, offsetof(struct toy_context, rebound));
|
memset(&toys, 0, offsetof(struct toy_context, rebound));
|
||||||
|
if (toys.recursion > 1) memset(&this, 0, sizeof(this));
|
||||||
|
|
||||||
// Subset of init needed by singlemain.
|
// Subset of init needed by singlemain.
|
||||||
toy_singleinit(which, argv);
|
toy_singleinit(which, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user