From 6713b23a65acf147ed90edb2c6cf011d5f0ce6ac Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 14 Feb 2021 11:21:50 -0600 Subject: [PATCH] Change behavior of empty env table passed to os/execute on windows. --- src/core/os.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/os.c b/src/core/os.c index 15e99425..4368bcd7 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -210,7 +210,6 @@ static EnvBlock os_execute_env(int32_t argc, const Janet *argv) { janet_buffer_push_bytes(temp, vals, janet_string_length(vals)); janet_buffer_push_u8(temp, '\0'); } - if (temp->count == 0) return NULL; janet_buffer_push_u8(temp, '\0'); char *ret = janet_smalloc(temp->count); memcpy(ret, temp->data, temp->count);