mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
semaphore:sem_holder sem_findholder missing inintalization of pholder
sem_findholder would fail and code optimization coverd this up.
This commit is contained in:
@@ -154,6 +154,7 @@ static FAR struct semholder_s *sem_findholder(sem_t *sem,
|
||||
}
|
||||
#else
|
||||
int i;
|
||||
pholder = NULL;
|
||||
|
||||
/* We have two hard-allocated holder structuse in sem_t */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user