summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/seminit.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-22 16:11:35 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-22 16:11:35 +0000
commit94f81bbd8b6f8105b8086cfe741636035aedd02a (patch)
treecc05ceb817a629a2cf95daa2618e50bd7206cd31 /cpukit/posix/src/seminit.c
parent+ Added description of routine to comment. (diff)
downloadrtems-94f81bbd8b6f8105b8086cfe741636035aedd02a.tar.bz2
+ Corrected bug in error check.
Diffstat (limited to 'cpukit/posix/src/seminit.c')
-rw-r--r--cpukit/posix/src/seminit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/posix/src/seminit.c b/cpukit/posix/src/seminit.c
index e2c34777a1..bcff1b0f32 100644
--- a/cpukit/posix/src/seminit.c
+++ b/cpukit/posix/src/seminit.c
@@ -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,