From 576104c91e6efaecbc22811bea94aacc5f91d74a Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 12 Mar 2009 11:24:26 +0000 Subject: Fix count initialization git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1595 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/sem_holder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nuttx/sched/sem_holder.c') diff --git a/nuttx/sched/sem_holder.c b/nuttx/sched/sem_holder.c index 376903d6a..0477a67e2 100644 --- a/nuttx/sched/sem_holder.c +++ b/nuttx/sched/sem_holder.c @@ -99,7 +99,8 @@ static inline FAR struct semholder_s *sem_allocholder(sem_t *sem) if (!sem->hlist.holder) { - pholder = &sem->hlist; + pholder = &sem->hlist; + pholder->counts = 0; } else { -- cgit v1.2.3