Skip to content

Commit

Permalink
Fix _impure_ptr init for default thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kimushu committed Sep 22, 2018
1 parent 0449ca4 commit 389c22b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TINYTH/src/tth_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ void tth_initialize(void)
tth_arch_crash();
}
tth_running = &tth_default_thread;
#if (TTHREAD_THREAD_SAFE_NEWLIB != 0)
tth_running->reent = _impure_ptr;
#endif
tth_arch_initialize();
}

Expand Down

0 comments on commit 389c22b

Please sign in to comment.