Replace memset 0 with initializers.
Test: Compiles and bionic unit tests pass.
Change-Id: I94e178c56d958beeb1c484e4d52d61df022189e8
diff --git a/tests/sys_sysinfo_test.cpp b/tests/sys_sysinfo_test.cpp
index 69656ad..b8bcf92 100644
--- a/tests/sys_sysinfo_test.cpp
+++ b/tests/sys_sysinfo_test.cpp
@@ -39,8 +39,7 @@
}
TEST(sys_sysinfo, sysinfo) {
- struct sysinfo si;
- memset(&si, 0, sizeof(si));
+ struct sysinfo si = {};
ASSERT_EQ(0, sysinfo(&si));
ASSERT_GT(static_cast<long>(si.uptime), 10); // You're not running CTS within 10s of booting!