summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-04-04 09:23:40 -0400
committerGitHub <noreply@github.com>2019-04-04 09:23:40 -0400
commit65da96af6c08c182f05df388c8d4872311b2f088 (patch)
tree42fcbaa3023e366b195fcb5b9bcb151bc1772c32 /src
parent7ae7c89dd0efb51e0b21302875c2c5e00729c9cb (diff)
downloadcoreclr-65da96af6c08c182f05df388c8d4872311b2f088.tar.gz
coreclr-65da96af6c08c182f05df388c8d4872311b2f088.tar.bz2
coreclr-65da96af6c08c182f05df388c8d4872311b2f088.zip
Don't null out buffer in MemoryStream on Capacity reset (#23700)
Diffstat (limited to 'src')
-rw-r--r--src/System.Private.CoreLib/shared/System/IO/MemoryStream.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.CoreLib/shared/System/IO/MemoryStream.cs b/src/System.Private.CoreLib/shared/System/IO/MemoryStream.cs
index 12baaa6eea..c8b72d45f8 100644
--- a/src/System.Private.CoreLib/shared/System/IO/MemoryStream.cs
+++ b/src/System.Private.CoreLib/shared/System/IO/MemoryStream.cs
@@ -299,7 +299,7 @@ namespace System.IO
}
else
{
- _buffer = null;
+ _buffer = Array.Empty<byte>();
}
_capacity = value;
}