pthread_mutexattr_getprotocol: added check for attribute structure being

initialized
This commit is contained in:
Joel Sherrill
1996-08-12 16:29:14 +00:00
parent 0cd15947c8
commit 684c3c49c3
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol(
int protocol
)
{
if ( !attr )
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( protocol ) {

View File

@@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol(
int protocol
)
{
if ( !attr )
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( protocol ) {