summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadhandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadhandler.c')
-rw-r--r--cpukit/score/src/threadhandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c
index e042cb68cf..82b3108079 100644
--- a/cpukit/score/src/threadhandler.c
+++ b/cpukit/score/src/threadhandler.c
@@ -109,11 +109,11 @@ void _Thread_Handler( void )
_Thread_Enable_dispatch();
#if defined(__USE_INIT_FINI__)
- if (!doneCons)
+ if (!doneCons && _init)
_init ();
#endif
#if defined(__USE__MAIN__)
- if (!doneCons)
+ if (!doneCons && _main)
__main ();
#endif