Skip to content

Commit 78a09c6

Browse files
authored
initialize previous_exception (#29861)
Fix uninitialized previous_exception bug introduced in #28878
1 parent eabc5de commit 78a09c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/threading.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ static void ti_initthread(int16_t tid)
283283
memset(bt_data, 0, sizeof(uintptr_t) * (JL_MAX_BT_SIZE + 1));
284284
ptls->bt_data = (uintptr_t*)bt_data;
285285
ptls->sig_exception = NULL;
286+
ptls->previous_exception = NULL;
286287
#ifdef _OS_WINDOWS_
287288
ptls->needs_resetstkoflw = 0;
288289
#endif

0 commit comments

Comments
 (0)