aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Hawkins <jhawkins@google.com>2016-02-26 15:15:06 -0800
committerJames Hawkins <jhawkins@google.com>2016-02-26 15:15:06 -0800
commit7454f5fe0a6f349de4089f729de9588b922ee143 (patch)
treed7e9386ae375209105d62a2b111ccc17d62f6946
parent17573b3cd2d56e0dac39305f88455663eb51949c (diff)
downloadcrash_reporter-7454f5fe0a6f349de4089f729de9588b922ee143.tar.gz
crash_reporter: Fix a -Wmissing-field-initializers warning.
The fix is to use the C++ empty struct initialization {} instead of the C-style {0}. Bug: 27378717 Change-Id: I36896d1202bf30b5db5689ac13acaff3b3f1b30b
-rw-r--r--crash_collector_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crash_collector_test.cc b/crash_collector_test.cc
index 7146638..a386cd1 100644
--- a/crash_collector_test.cc
+++ b/crash_collector_test.cc
@@ -95,7 +95,7 @@ TEST_F(CrashCollectorTest, Sanitize) {
}
TEST_F(CrashCollectorTest, FormatDumpBasename) {
- struct tm tm = {0};
+ struct tm tm = {};
tm.tm_sec = 15;
tm.tm_min = 50;
tm.tm_hour = 13;