diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 11:09:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-15 11:09:32 +0100 |
commit | 7a462cc60d5361131a8844d79d1bcbc10bb6fc2e (patch) | |
tree | 1a445083897f8e47f57887ae01f05bc28d9c7c83 | |
parent | psxtests: Fix warnings (diff) | |
download | rtems-7a462cc60d5361131a8844d79d1bcbc10bb6fc2e.tar.bz2 |
score: Fix warning
-rw-r--r-- | cpukit/score/src/threadinitialize.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index 2eb6507565..c34113db3d 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -185,6 +185,7 @@ bool _Thread_Initialize( } #if defined(RTEMS_SMP) + scheduler_node = NULL; scheduler_node_for_index = the_thread->Scheduler.nodes; scheduler_for_index = &_Scheduler_Table[ 0 ]; @@ -217,6 +218,7 @@ bool _Thread_Initialize( ++scheduler_index; } + _Assert( scheduler_node != NULL ); _Chain_Initialize_one( &the_thread->Scheduler.Wait_nodes, &scheduler_node->Thread.Wait_node |