From cdb525205b01391785989c97df10895d53fcc5da Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Nov 2020 22:43:41 +0100 Subject: [PATCH] Fix variable initialization in extract_location(). --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 60ddb41..14cf788 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -262,7 +262,7 @@ string Document::remove_html(string html) const string Document::extract_location(const curl_wrapper::answer &answer) { - const string location = answer.get_header("Location"); + string location{answer.get_header("Location")}; if (location.empty()) {