Remove nullptr initialization of std::string

The Fuchsia test file has a zero initialization of std::string which is
causing build failures in Fuchsia with the latest Clang toolchain.

Bug: chromium:401365559
Change-Id: I37dee7c87f6c90e53fccbd2f03241143e40a77cb
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6331160
Commit-Queue: Roland McGrath <mcgrathr@chromium.org>
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
Reviewed-by: Roland McGrath <mcgrathr@chromium.org>
Commit-Queue: Prabhu Karthikeyan Rajasekaran <prabhukr@google.com>
This commit is contained in:
prabhukr 2025-03-07 00:42:30 +00:00 committed by Crashpad LUCI CQ
parent e383fa1d04
commit 04b11f9964

View File

@ -147,7 +147,7 @@ CRASHPAD_CHILD_TEST_MAIN(ProcessReaderChildThreadsTestMain) {
EXPECT_EQ(status, ZX_OK); EXPECT_EQ(status, ZX_OK);
constexpr size_t kNumThreads = 5; constexpr size_t kNumThreads = 5;
struct ThreadData thread_data[kNumThreads] = {{0, 0}}; struct ThreadData thread_data[kNumThreads] = {{0, ""}};
for (size_t i = 0; i < kNumThreads; ++i) { for (size_t i = 0; i < kNumThreads; ++i) {
thread_data[i] = { thread_data[i] = {