diff options
author | Max Kellermann <max.kellermann@ionos.com> | 2024-10-04 17:27:28 +0200 |
---|---|---|
committer | Max Kellermann <max.kellermann@ionos.com> | 2024-10-09 23:15:15 +0200 |
commit | 7fcb8a8afaf5a61e525e8cbc01efae5b14f6cc4e (patch) | |
tree | 8154e902b8fc2edd92bcc6aff90f2b8f8a328cf1 | |
parent | msg/Message: use zero-initialization instead of memset() (diff) | |
download | ceph-7fcb8a8afaf5a61e525e8cbc01efae5b14f6cc4e.tar.xz ceph-7fcb8a8afaf5a61e525e8cbc01efae5b14f6cc4e.zip |
msg/async/Event: use zero-initialization instead of memset()
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
-rw-r--r-- | src/msg/async/Event.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/msg/async/Event.h b/src/msg/async/Event.h index a595667e447..6acd6275738 100644 --- a/src/msg/async/Event.h +++ b/src/msg/async/Event.h @@ -97,11 +97,7 @@ class EventCenter { using clock_type = ceph::coarse_mono_clock; struct AssociatedCenters { - EventCenter *centers[MAX_EVENTCENTER]; - AssociatedCenters() { - // FIPS zeroization audit 20191115: this memset is not security related. - memset(centers, 0, MAX_EVENTCENTER * sizeof(EventCenter*)); - } + EventCenter *centers[MAX_EVENTCENTER]{}; }; struct FileEvent { |