Skip to content

Commit

Permalink
Fixed copying Source problem
Browse files Browse the repository at this point in the history
  • Loading branch information
faithnh committed Mar 1, 2021
1 parent c27da8b commit fb58a7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions adapters/unicorn/unicorn.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ func (a *adapter) MakeRequests(request *openrtb.BidRequest, requestInfo *adapter
return nil, []error{err}
}

var modifiableSource *openrtb.Source
var modifiableSource openrtb.Source
if request.Source != nil {
modifiableSource = request.Source
modifiableSource = *request.Source
} else {
modifiableSource = &openrtb.Source{}
modifiableSource = openrtb.Source{}
}
modifiableSource.Ext = setSourceExt()
request.Source = modifiableSource
request.Source = &modifiableSource

request.Ext, err = setExt(request)
if err != nil {
Expand Down

0 comments on commit fb58a7e

Please sign in to comment.