From 2b7197dafdebdfcec8694a3daff6a8fe3dc88a5d Mon Sep 17 00:00:00 2001 From: Michael Dawson <mdawson@devrus.com> 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 <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/40555 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> --- 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<T>::NgHeader( template <typename T> NgHeader<T>::NgHeader(NgHeader<T>&& 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_) {