From 1f30ea66e92cf2be3b85f04f5854259bc6910f04 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 31 May 2019 13:45:39 -0400 Subject: [PATCH] Windows quick fix. --- src/core/os.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/os.c b/src/core/os.c index 72d2ba36..f0d74aff 100644 --- a/src/core/os.c +++ b/src/core/os.c @@ -274,6 +274,9 @@ static Janet os_execute(int32_t argc, Janet *argv) { janet_panic("expected at least 1 command line argument"); } + /* Result */ + int status = 0; + #ifdef JANET_WINDOWS JanetBuffer *buf = os_exec_escape(exargs); @@ -302,7 +305,6 @@ static Janet os_execute(int32_t argc, Janet *argv) { #else const char **child_argv = malloc(sizeof(char *) * (exargs.len + 1)); - int status = 0; if (NULL == child_argv) { JANET_OUT_OF_MEMORY; }