diff packages/kernel/current/src/common/kapi.cxx @ 1031:6b4a1f23fbbb

* 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.
author asl
date Tue, 20 May 2003 08:56:42 +0000
parents bd1ddaaaf796
children 1b465c781382
line wrap: on
line diff
--- 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();