# wasm: avoids allocating zero length buffers for args or env · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7208e1ff8715856f4ec7b5148450d160442d5a6e)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7208e1ff8715856f4ec7b5148450d160442d5a6e

Requested commit: 7208e1ff8715856f4ec7b5148450d160442d5a6e

Commit: 7208e1ff8715856f4ec7b5148450d160442d5a6e

Tree: 83a91978fa8c912be81c1a53715e88b2b34005c6

Author: Adrian Cole

Committer: Veikka Tuominen

## Message

```
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>

```

## Parents

- [c70a3d9022b4cb3e848a5f092a5eab7f7217cca0](https://git.cafe/gitcafe/zig/commit/c70a3d9022b4cb3e848a5f092a5eab7f7217cca0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7208e1ff8715856f4ec7b5148450d160442d5a6e?format=markdown)
