microsoft / azure-vhd-utils

Azure VHD utilities.
Other
96 stars 41 forks source link

Wrong check in (*Cookie).Equal #19

Closed dominikh closed 7 years ago

dominikh commented 8 years ago

The following code compares c.isHeader with itself:

return c.isHeader == c.isHeader && bytes.Equal(c.Data, other.Data)
/src/github.com/Microsoft/azure-vhd-utils-for-go/vhdcore/vhdCookie.go:75:9: identical expressions on the left and right side of the '==' operator
anuchandy commented 7 years ago

Addressed in the commit https://github.com/Microsoft/azure-vhd-utils/commit/43293b8d76460dd25093d216c95abc79342e1657