Skip to content

Commit 0fc69a4

Browse files
committed
spelling: label
Signed-off-by: Josh Soref <[email protected]>
1 parent 5a109c9 commit 0fc69a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-561/FindIncorrectlyUsedSwitch.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ predicate isConditionBig(SwitchStmt swtmp) {
8484
}
8585

8686
/** Holds if there are labels inside the block with names similar to `default` or `case`. */
87-
predicate isWrongLableName(SwitchStmt swtmp) {
87+
predicate isWrongLabelName(SwitchStmt swtmp) {
8888
not swtmp.hasDefaultCase() and
8989
exists(LabelStmt lb |
9090
(
@@ -147,7 +147,7 @@ where
147147
isConditionBig(sw) and msg = "The range of condition values is wider than the choices."
148148
)
149149
or
150-
isWrongLableName(sw) and msg = "Possibly erroneous label name."
150+
isWrongLabelName(sw) and msg = "Possibly erroneous label name."
151151
or
152152
isCodeBeforeCase(sw) and msg = "Code before case will not be executed."
153153
select sw, msg

0 commit comments

Comments
 (0)