Merge pull request #95 from cmazakas/unitialized-warning-fix

Fix asan unitialized warning
This commit is contained in:
Peter Dimov authored and GitHub committed 2022-02-12 02:08:27 +02:00
commit 65094532eb
1 file changed
+3 -1
+3 -1
View File
@@ -263,7 +263,9 @@ template <typename T> struct allocator3
allocator3<T> select_on_container_copy_construction() const
{
++selected;
return allocator3<T>();
allocator3<T> a;
a.x = 0;
return a;
}
};