Skip to content

Commit 9b8b916

Browse files
authored
Update IncorrectChangingWorkingDirectory.ql
1 parent 3161d11 commit 9b8b916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-243/IncorrectChangingWorkingDirectory.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ where
6868
not exists(ReturnStmt rttmp | rttmp.getExpr().getAChild*() = fc) and
6969
not exists(Assignment astmp | astmp.getAChild*() = fc) and
7070
not exists(Initializer ittmp | ittmp.getExpr().getAChild*() = fc) and
71-
not isFromMacroDefinition(fc)
71+
not isFromMacroDefinition(fc) and
7272
msg = "Unchecked return value for call to '" + fc.getTarget().getName() + "'."
7373
select fc, msg

0 commit comments

Comments
 (0)