Skip to content

Commit

Permalink
schema: Fix field copying (#122)
Browse files Browse the repository at this point in the history
`range` provides a copy so taking an address is invalid.
  • Loading branch information
rohansingh authored Jan 15, 2022
1 parent 28d0408 commit 2129361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func FromStarlark(
}

for i, schemaField := range schema.Fields {
schema.fieldByID[schemaField.ID] = &schemaField
schema.fieldByID[schemaField.ID] = &schema.Fields[i]
if schemaField.Handler != "" {
handlerValue, found := globals[schemaField.Handler]
if !found {
Expand Down

0 comments on commit 2129361

Please sign in to comment.