From ad3dc3766e1f9d8bb5700c707019d975cf345f6e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 22 Aug 2016 14:19:09 -0700 Subject: [PATCH] Default network values to 0.0 --- atom/browser/api/atom_api_session.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {