# HG changeset patch # User asl # Date 1053421002 0 # Node ID 6b4a1f23fbbbbaa06e75c481bb141c5dd5cf43c5 # Parent 512f2f50d2d024aaee360bc2e738a247c1c26f07 * src/common/kapi.cxx (cyg_thread_get_next): Passing a *current pointer as NULL is how you start the walk of the linked list. So don't assert on NULL. Reported by Daniel Lidsten. diff --git a/packages/kernel/current/ChangeLog b/packages/kernel/current/ChangeLog --- a/packages/kernel/current/ChangeLog +++ b/packages/kernel/current/ChangeLog @@ -1,3 +1,9 @@ +2003-05-20 Andrew Lunn + + * src/common/kapi.cxx (cyg_thread_get_next): Passing a *current + pointer as NULL if how you start the walk of the linked list. So + don't assert on NULL. Reported by Daniel Lidsten. + 2003-05-05 Gary Thomas * tests/tm_basic.cxx: Support new option controlling number of times diff --git a/packages/kernel/current/src/common/kapi.cxx b/packages/kernel/current/src/common/kapi.cxx --- a/packages/kernel/current/src/common/kapi.cxx +++ b/packages/kernel/current/src/common/kapi.cxx @@ -331,7 +331,7 @@ cyg_bool_t cyg_thread_get_next( cyg_hand Cyg_Scheduler::lock(); Cyg_Thread *thread = (Cyg_Thread *)*current; - CYG_ASSERT_CLASSC( thread ); + CYG_ASSERT_ZERO_OR_CLASSC( thread ); if( *current == 0 ) { thread = Cyg_Thread::get_list_head();