+ Corrected bug in error check.

This commit is contained in:
Jennifer Averett
1999-11-22 16:11:35 +00:00
parent 2c3af4c5da
commit 94f81bbd8b
2 changed files with 2 additions and 4 deletions

View File

@@ -30,10 +30,9 @@ int sem_init(
int status;
POSIX_Semaphore_Control *the_semaphore;
if ( !*sem )
if ( !sem )
set_errno_and_return_minus_one( EINVAL );
status = _POSIX_Semaphore_Create_support(
NULL,
pshared,

View File

@@ -30,10 +30,9 @@ int sem_init(
int status;
POSIX_Semaphore_Control *the_semaphore;
if ( !*sem )
if ( !sem )
set_errno_and_return_minus_one( EINVAL );
status = _POSIX_Semaphore_Create_support(
NULL,
pshared,