Skip to content

Commit

Permalink
initialize previous_exception (#29861)
Browse files Browse the repository at this point in the history
Fix uninitialized previous_exception bug introduced in #28878
  • Loading branch information
c42f committed Oct 31, 2018
1 parent eabc5de commit 78a09c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ static void ti_initthread(int16_t tid)
memset(bt_data, 0, sizeof(uintptr_t) * (JL_MAX_BT_SIZE + 1));
ptls->bt_data = (uintptr_t*)bt_data;
ptls->sig_exception = NULL;
ptls->previous_exception = NULL;
#ifdef _OS_WINDOWS_
ptls->needs_resetstkoflw = 0;
#endif
Expand Down

0 comments on commit 78a09c6

Please sign in to comment.