From c60d380f39caef44bc44309066474d523307d65d Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 3 Jun 2025 16:02:44 -0400 Subject: [PATCH] Fix read of crash reporting env vars --- libcef/common/crash_reporter_client.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcef/common/crash_reporter_client.cc b/libcef/common/crash_reporter_client.cc index 037574352..aaf9be061 100644 --- a/libcef/common/crash_reporter_client.cc +++ b/libcef/common/crash_reporter_client.cc @@ -548,14 +548,12 @@ bool CefCrashReporterClient::ReadCrashConfigFile() { // Allow override of some values via environment variables. { std::unique_ptr env(base::Environment::Create()); - std::string val_str; - if (const auto& var_str = env->GetVar("CEF_CRASH_REPORTER_SERVER_URL")) { - ParseURL(val_str, &server_url_); + ParseURL(*var_str, &server_url_); } if (const auto& var_str = env->GetVar("CEF_CRASH_REPORTER_RATE_LIMIT_ENABLED")) { - rate_limit_ = ParseBool(val_str); + rate_limit_ = ParseBool(*var_str); } }