From 5618fdaee87f1098f97c33bf27253528cea6e6c3 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 29 Jun 2019 19:20:42 +0800 Subject: [PATCH] uses default constructor of string_view to reset _statusMessage --- lib/src/HttpResponseImpl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/HttpResponseImpl.cc b/lib/src/HttpResponseImpl.cc index 0af270de..c5ab2d30 100644 --- a/lib/src/HttpResponseImpl.cc +++ b/lib/src/HttpResponseImpl.cc @@ -404,7 +404,7 @@ void HttpResponseImpl::clear() { _statusCode = kUnknown; _v = kHttp11; - _statusMessage = nullptr; + _statusMessage = string_view{}; _fullHeaderString.reset(); _headers.clear(); _cookies.clear(); @@ -435,4 +435,4 @@ void HttpResponseImpl::parseJson() const HttpResponseImpl::~HttpResponseImpl() { -} \ No newline at end of file +}