Skip to content

Commit

Permalink
Fixed RVConnectionData specialProtocols slice not being copied correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed May 21, 2023
1 parent e39ebbe commit 7e4b98c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ func (rvConnectionData *RVConnectionData) Copy() StructureInterface {

copied.parentType = rvConnectionData.parentType
copied.stationURL = rvConnectionData.stationURL
copied.specialProtocols = rvConnectionData.specialProtocols
copied.specialProtocols = make([]byte, len(rvConnectionData.specialProtocols))

copy(copied.specialProtocols, rvConnectionData.specialProtocols)

copied.stationURLSpecialProtocols = rvConnectionData.stationURLSpecialProtocols
copied.time = rvConnectionData.time

Expand Down

0 comments on commit 7e4b98c

Please sign in to comment.