buffer/settings: Add comment why do we need to zero origHash

This commit is contained in:
Dmytro Maluka 2024-08-18 15:19:19 +02:00
parent 7fe98ccfee
commit d31095fe8f

View File

@ -18,6 +18,7 @@ func (b *Buffer) SetOptionNative(option string, nativeValue interface{}) error {
if !b.isModified {
calcHash(b, &b.origHash)
} else {
// prevent using an old stale origHash value
b.origHash = [md5.Size]byte{}
}
}