herpderp
This commit is contained in:
parent
7ba8001f27
commit
ba1adc207e
4
event.go
4
event.go
@ -131,7 +131,9 @@ func (e *Event) Copy() *Event {
|
|||||||
*newEvent = *e
|
*newEvent = *e
|
||||||
|
|
||||||
// Copy Source field, as it's a pointer and needs to be dereferenced.
|
// Copy Source field, as it's a pointer and needs to be dereferenced.
|
||||||
*newEvent.Source = *e.Source
|
if e.Source != nil {
|
||||||
|
*newEvent.Source = *e.Source
|
||||||
|
}
|
||||||
|
|
||||||
// Copy tags as necessary.
|
// Copy tags as necessary.
|
||||||
if e.Tags != nil {
|
if e.Tags != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user