wasm: avoids allocating zero length buffers for args or env

I was testing this with wazero, which defaults to not propagate any env
variables. This ensures we don't try to allocate zero length buffers
when there are no results from either function.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
7208e1ff87Adrian Cole committed on 1/19/2023, 1:34:38 PM· committed by Veikka Tuominenparentc70a3d9
1 file changedLine totals unavailable