diff options
Diffstat (limited to 'tools/checkescape')
-rw-r--r-- | tools/checkescape/checkescape.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/checkescape/checkescape.go b/tools/checkescape/checkescape.go index dd2fcb961..f5bba9980 100644 --- a/tools/checkescape/checkescape.go +++ b/tools/checkescape/checkescape.go @@ -441,9 +441,8 @@ NextLine: // Is this an "allowed" function definition? if len(fields) >= 2 && fields[0] == "TEXT" { - if _, ok := funcsAllowed[fields[1]]; ok { - nextFunc = strings.TrimSuffix(fields[1], "(SB)") - } else { + nextFunc = strings.TrimSuffix(fields[1], "(SB)") + if _, ok := funcsAllowed[nextFunc]; !ok { nextFunc = "" // Don't record addresses. } } |