diff --git a/cpukit/score/src/apimutex.c b/cpukit/score/src/apimutex.c index ec2fbdc3ec..eb0663d2a2 100644 --- a/cpukit/score/src/apimutex.c +++ b/cpukit/score/src/apimutex.c @@ -61,6 +61,8 @@ void _API_Mutex_Allocate( mutex = (API_Mutex_Control *) _Objects_Allocate_unprotected( &_API_Mutex_Information ); + _Assert( mutex != NULL ); + _CORE_mutex_Initialize( &mutex->Mutex, NULL, &attr, false ); _Objects_Open_u32( &_API_Mutex_Information, &mutex->Object, 1 );