Skip to content

Commit

Permalink
Constrain the values of a and b in function not to be both NULL (rack…
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Matos authored Apr 17, 2020
1 parent 734491b commit 876aff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion racket/src/racket/src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -6450,7 +6450,9 @@ static void *splice_ptr_array(void **a, int al, void **b, int bl, int i)
{
void **r;
int j;


MZ_ASSERT (a != NULL || b != NULL);

r = MALLOC_N(void*, al + bl - 1);

if (a)
Expand Down

0 comments on commit 876aff8

Please sign in to comment.