Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
svyotov committed Jan 12, 2020
1 parent 612279b commit 8eabc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func deepMerge(dstIn, src reflect.Value, visited map[uintptr]*visit, depth int,
// copy un-exported struct fields
if !isExportedComponent(&structField) {
rf := dstCp.Field(i)
rf = reflect.NewAt(rf.Type(), unsafe.Pointer(rf.Pointer())).Elem() //nolint:gosec
rf = reflect.NewAt(rf.Type(), unsafe.Pointer(rf.UnsafeAddr())).Elem() //nolint:gosec
dstRF := dst.Field(i)
if !dst.Field(i).CanAddr() {
continue
Expand Down

0 comments on commit 8eabc02

Please sign in to comment.