forked from Imagelibrary/rtems
monitor: Do not zero sema id and name
This commit is contained in:
@@ -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