From 7a462cc60d5361131a8844d79d1bcbc10bb6fc2e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 15 Feb 2017 11:09:32 +0100 Subject: score: Fix warning --- cpukit/score/src/threadinitialize.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3