From bddb4c69b7d6318f9f0bdd48bd1758f2e3c708f0 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Thu, 21 Oct 2021 16:22:35 -0400 Subject: [PATCH] http: add missing initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add missing initialization reported by coverity scan. Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/40555 Reviewed-By: Anna Henningsen Reviewed-By: Tobias Nießen --- src/node_http_common-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node_http_common-inl.h b/src/node_http_common-inl.h index 6ddc99e7d4e897..e78a6fdd2f95bd 100644 --- a/src/node_http_common-inl.h +++ b/src/node_http_common-inl.h @@ -131,7 +131,8 @@ NgHeader::NgHeader( template NgHeader::NgHeader(NgHeader&& other) noexcept - : name_(std::move(other.name_)), + : env_(other.env_), + name_(std::move(other.name_)), value_(std::move(other.value_)), token_(other.token_), flags_(other.flags_) {