From 69a7025c96bfb53bdc7773c1153fc3f45b2d9cf7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 5 Oct 2016 14:19:22 -0700 Subject: [PATCH] Fix Linux compiler errors --- atom/common/crash_reporter/crash_reporter_linux.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/common/crash_reporter/crash_reporter_linux.cc b/atom/common/crash_reporter/crash_reporter_linux.cc index 4913e4b3d2..e1d2389f36 100644 --- a/atom/common/crash_reporter/crash_reporter_linux.cc +++ b/atom/common/crash_reporter/crash_reporter_linux.cc @@ -79,13 +79,13 @@ void CrashReporterLinux::SetUploadParameters() { void CrashReporterLinux::EnableCrashDumping(const std::string& product_name) { base::FilePath dumps_path; - if (!GetCrashesDirectory(&dumps_path)) + if (!GetCrashesDirectory(product_name, &dumps_path)) return; base::CreateDirectory(dumps_path); std::string log_file = base::StringPrintf( - "%s/%s", dump_dir.c_str(), "uploads.log"); + "%s/%s", dumps_path.value().c_str(), "uploads.log"); strncpy(g_crash_log_path, log_file.c_str(), sizeof(g_crash_log_path)); MinidumpDescriptor minidump_descriptor(dumps_path.value());