aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-check/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go
index 29f88093a..9c60615a0 100644
--- a/tools/syz-check/check.go
+++ b/tools/syz-check/check.go
@@ -263,7 +263,7 @@ func checkStruct(typ *prog.StructType, astStruct *ast.Struct, str *dwarf.StructT
if ai < len(str.Field) {
fld := str.Field[ai]
pos := astStruct.Fields[ai].Pos
- desc := fmt.Sprintf("%v.%v", name, fld.Name)
+ desc := fmt.Sprintf("%v.%v", name, field.Name)
if field.Name != fld.Name {
desc += "/" + fld.Name
}