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

Fix asan unitialized warning
This commit is contained in:
Peter Dimov
2022-02-12 02:08:27 +02:00
committed by GitHub

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;
}
};