Skip to content

Commit

Permalink
fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Feb 1, 2019
1 parent c03d935 commit cead99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/gossip/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func addServices(old, neu []*registry.Service) []*registry.Service {
var seen bool
for _, o := range old {
if o.Version == s.Version {
var sp *registry.Service
sp := new(registry.Service)
// make copy
*sp = *o
// set nodes
Expand Down

0 comments on commit cead99a

Please sign in to comment.