mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Update IncorrectChangingWorkingDirectory.ql
This commit is contained in:
@@ -63,7 +63,7 @@ where
|
||||
fc.getTarget().hasGlobalOrStdName("chdir") or
|
||||
fc.getTarget().hasGlobalOrStdName("fchdir")
|
||||
) and
|
||||
fc instanceof ExprInVoidContext
|
||||
fc instanceof ExprInVoidContext and
|
||||
not isFromMacroDefinition(fc) and
|
||||
msg = "Unchecked return value for call to '" + fc.getTarget().getName() + "'."
|
||||
select fc, msg
|
||||
|
||||
Reference in New Issue
Block a user