aboutsummaryrefslogtreecommitdiff
path: root/tests/files/bc/print_results.txt
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-02-26 02:45:09 -0600
committerRob Landley <rob@landley.net>2020-02-26 02:45:09 -0600
commit3b82917a49f9e5ec3f6d4868adeac35a52c5a06e (patch)
treeafea6268411473019c28714c08d2c881945fa84f /tests/files/bc/print_results.txt
parent4034fd798d5bca3202e836afbb3cccf4380ba88f (diff)
downloadtoybox-3b82917a49f9e5ec3f6d4868adeac35a52c5a06e.tar.gz
Fix xclearenv() breakage pointed out by Derrick Pallas.
Toybox doesn't modify inherited environ[] (the same way we don't modify our inherited argv[]), so instead of freeing our allocated environ[] when we want to clear it we need to allocate a new environ[] in the else path (at a length compatible with the existing plumbing's add stride), set the first entry of _that_ to 0, and set toys.envc = 1 to record it's an alloced environ.
Diffstat (limited to 'tests/files/bc/print_results.txt')
0 files changed, 0 insertions, 0 deletions