diff --git a/atom/browser/api/atom_api_session.cc b/atom/browser/api/atom_api_session.cc index 58de02f2ff63..bf950c4bb20a 100644 --- a/atom/browser/api/atom_api_session.cc +++ b/atom/browser/api/atom_api_session.cc @@ -416,7 +416,9 @@ void Session::SetDownloadPath(const base::FilePath& path) { void Session::EnableNetworkEmulation(const mate::Dictionary& options) { std::unique_ptr conditions; bool offline = false; - double latency, download_throughput, upload_throughput; + double latency = 0.0; + double download_throughput = 0.0; + double upload_throughput = 0.0; if (options.Get("offline", &offline) && offline) { conditions.reset(new brightray::DevToolsNetworkConditions(offline)); } else {