1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 03:19:54 +00:00

Fix calling jpm quickbin binary with no arguments.

This commit is contained in:
Calvin Rose 2019-11-30 15:11:34 -05:00
parent bf609445c1
commit f3c0d9115f

View File

@ -475,7 +475,7 @@ int main(int argc, const char **argv) {
janet_gcunlock(handle); janet_gcunlock(handle);
/* Run everything */ /* Run everything */
JanetFiber *fiber = janet_fiber(janet_unwrap_function(marsh_out), 64, argc, args->data); JanetFiber *fiber = janet_fiber(janet_unwrap_function(marsh_out), 64, argc, argc ? args->data : NULL);
fiber->env = temptab; fiber->env = temptab;
Janet out; Janet out;
JanetSignal result = janet_continue(fiber, janet_wrap_nil(), &out); JanetSignal result = janet_continue(fiber, janet_wrap_nil(), &out);