Update IncorrectChangingWorkingDirectory.ql

This commit is contained in:
ihsinme
2021-11-02 16:16:17 +03:00
committed by GitHub
parent 738354b8e7
commit 62b3c3c9a0

View File

@@ -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