mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
monitor: Do not zero sema id and name
This commit is contained in:
1 parent
088acbb01f
commit
36338fb312
1 file changed
+5
-1
@@ -21,7 +21,11 @@ rtems_monitor_sema_canonical(
|
||||
const Semaphore_Control *rtems_sema = (const Semaphore_Control *) sema_void;
|
||||
Thread_Control *owner;
|
||||
|
||||
memset(canonical_sema, 0, sizeof(*canonical_sema));
|
||||
canonical_sema->attribute = 0;
|
||||
canonical_sema->priority_ceiling = 0;
|
||||
canonical_sema->max_count = 0;
|
||||
canonical_sema->cur_count = 0;
|
||||
canonical_sema->holder_id = 0;
|
||||
|
||||
#if defined(RTEMS_MULTIPROCESSING)
|
||||
if (rtems_sema->is_global) {
|
||||
|
||||
Reference in new issue
Block a user