summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_holder.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-12 11:24:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-03-12 11:24:26 +0000
commit576104c91e6efaecbc22811bea94aacc5f91d74a (patch)
tree03b47c1cf2b9a719bb905c6abab25a43c57b1759 /nuttx/sched/sem_holder.c
parent5e08d73490edc7d9cc702a8e9c38a19709b034ea (diff)
downloadpx4-nuttx-576104c91e6efaecbc22811bea94aacc5f91d74a.tar.gz
px4-nuttx-576104c91e6efaecbc22811bea94aacc5f91d74a.tar.bz2
px4-nuttx-576104c91e6efaecbc22811bea94aacc5f91d74a.zip
Fix count initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1595 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_holder.c')
-rw-r--r--nuttx/sched/sem_holder.c3
1 files changed, 2 insertions, 1 deletions
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
{