commit | 2a3918828b1217ae04d3e3b43f8a56707c9bea14 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Thu Dec 19 13:44:35 2024 -0800 |
committer | Christopher Ferris <cferris@google.com> | Thu Dec 19 16:38:29 2024 -0800 |
tree | aab81800dd3cd947ffc41f39ce84ba5e3a4c5239 | |
parent | f8f4e9f84d836a8eaa63b097bd4215c4707463e1 [diff] [blame] |
Replace memset 0 with initializers. Test: Compiles and bionic unit tests pass. Change-Id: I94e178c56d958beeb1c484e4d52d61df022189e8
diff --git a/tests/sys_shm_test.cpp b/tests/sys_shm_test.cpp index 65f9eba..74d13b5 100644 --- a/tests/sys_shm_test.cpp +++ b/tests/sys_shm_test.cpp
@@ -44,8 +44,7 @@ ASSERT_NE(id, -1); // Check segment info. - shmid_ds ds; - memset(&ds, 0, sizeof(ds)); + shmid_ds ds = {}; ASSERT_EQ(0, shmctl(id, IPC_STAT, &ds)); ASSERT_EQ(1234U, ds.shm_segsz);