Windows quick fix.

This commit is contained in:
Calvin Rose 2019-05-31 13:45:39 -04:00
parent c43aaf8986
commit 1f30ea66e9
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}