From 09c3282b526f7ac8e6b3c50bcd855c0b42d44966 Mon Sep 17 00:00:00 2001 From: Tiago Date: Tue, 12 Mar 2024 17:13:30 -0700 Subject: [PATCH] Fix 4473 https://github.com/microsoft/STL/issues/4473 --- stl/inc/xstring | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/xstring b/stl/inc/xstring index 9e6e854182..55834e972a 100644 --- a/stl/inc/xstring +++ b/stl/inc/xstring @@ -2615,7 +2615,7 @@ private: _STL_INTERNAL_CHECK(_Capacity > _Small_string_capacity); ++_Capacity; // Take null terminator into consideration - pointer _Fancy_ptr; + pointer _Fancy_ptr = nullptr; if constexpr (_Policy == _Allocation_policy::_At_least) { _Fancy_ptr = _Allocate_at_least_helper(_Al, _Capacity); } else {