diff options
Diffstat (limited to 'crypto/src/bcpg/ArmoredOutputStream.cs')
-rw-r--r-- | crypto/src/bcpg/ArmoredOutputStream.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/bcpg/ArmoredOutputStream.cs b/crypto/src/bcpg/ArmoredOutputStream.cs index 7a5066ec3..82e7cc1f0 100644 --- a/crypto/src/bcpg/ArmoredOutputStream.cs +++ b/crypto/src/bcpg/ArmoredOutputStream.cs @@ -147,13 +147,13 @@ namespace Org.BouncyCastle.Bcpg */ public void ResetHeaders() { - string version = (string)headers[HeaderVersion]; + string existingVersion = (string)headers[HeaderVersion]; headers.Clear(); - if (version != null) + if (existingVersion != null) { - headers[HeaderVersion] = Version; + headers.Add(HeaderVersion, existingVersion); } } |