diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index c660902d31..c51425bd9a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2007-09-14 Joel Sherrill + + PR 1261/cpukit + * posix/src/semaphorecreatesupp.c: Initialize all fields during + semaphore creation. + 2007-09-14 Joel Sherrill PR 1260/cpukit 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;