Mercurial > hg > toybox
changeset 1723:11d767f3fbb1 draft
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...)
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 06 Mar 2015 15:12:52 -0600 |
parents | 0bf35904cabc |
children | 81d8a7b20ce9 |
files | main.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Fri Mar 06 15:11:38 2015 -0600 +++ b/main.c Fri Mar 06 15:12:52 2015 -0600 @@ -116,6 +116,7 @@ if (toys.optargs != toys.argv+1) free(toys.optargs); memset(&toys, 0, offsetof(struct toy_context, rebound)); + if (toys.recursion > 1) memset(&this, 0, sizeof(this)); // Subset of init needed by singlemain. toy_singleinit(which, argv);