From 684c3c49c3ca62817604ddb5c823b757b894f817 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 12 Aug 1996 16:29:14 +0000 Subject: pthread_mutexattr_getprotocol: added check for attribute structure being initialized --- cpukit/posix/src/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/posix') diff --git a/cpukit/posix/src/mutex.c b/cpukit/posix/src/mutex.c index e6feda5864..d2c0c6cd2c 100644 --- a/cpukit/posix/src/mutex.c +++ b/cpukit/posix/src/mutex.c @@ -506,7 +506,7 @@ int pthread_mutexattr_setprotocol( int protocol ) { - if ( !attr ) + if ( !attr || !attr->is_initialized ) return EINVAL; switch ( protocol ) { -- cgit v1.2.3