Skip to content

Commit

Permalink
JULIA_COPY_STACKS: validate values (#33318)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski authored and JeffBezanson committed Sep 19, 2019
1 parent c1403bd commit 9079472
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@ void jl_init_tasks(void) JL_GC_DISABLED
always_copy_stacks = 1;
else if (!strcmp(acs, "0") || !strcmp(acs, "no"))
always_copy_stacks = 0;
else {
jl_printf(JL_STDERR, "invalid JULIA_COPY_STACKS value: %s\n", acs);
exit(1);
}
}
}

Expand Down

0 comments on commit 9079472

Please sign in to comment.