Skip to content

Commit

Permalink
Merge 1afa7d4 into 7b70699
Browse files Browse the repository at this point in the history
  • Loading branch information
kibra committed Dec 13, 2016
2 parents 7b70699 + 1afa7d4 commit ac7eb9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion messagediff.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ func (d *Diff) diff(aVal, bVal reflect.Value, path Path) bool {
if reflect.DeepEqual(aVal.Interface(), bVal.Interface()) {
equal = true
} else {
d.Modified[&path] = bVal.Interface()
localPath := make(Path, len(path))
copy(localPath, path)
d.Modified[&localPath] = bVal.Interface()
equal = false
}
}
Expand Down

0 comments on commit ac7eb9f

Please sign in to comment.