diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-14 14:53:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-14 14:53:14 +0000 |
commit | f2e3e3776d2dfa8342adf65d5d4bbf8b9eb0ac77 (patch) | |
tree | 1022bd8d6e0fa6260c8900410d756e4d978fdccf /cpukit/posix/src | |
parent | 2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-f2e3e3776d2dfa8342adf65d5d4bbf8b9eb0ac77.tar.bz2 |
2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1261/cpukit
* posix/src/semaphorecreatesupp.c: Initialize all fields during
semaphore creation.
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/semaphorecreatesupp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/semaphorecreatesupp.c b/cpukit/posix/src/semaphorecreatesupp.c index 64d8f435b0..77c6924fe5 100644 --- a/cpukit/posix/src/semaphorecreatesupp.c +++ b/cpukit/posix/src/semaphorecreatesupp.c @@ -78,9 +78,11 @@ int _POSIX_Semaphore_Create_support( the_semaphore->named = TRUE; the_semaphore->open_count = 1; the_semaphore->linked = TRUE; - } - else + } else { the_semaphore->named = FALSE; + the_semaphore->open_count = 0; + the_semaphore->linked = FALSE; + } the_sem_attr = &the_semaphore->Semaphore.Attributes; |