mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
Merge pull request #3307 from gberkes/v3/cppcheck_v2_16_upgrade
Fix: Add false positive cppcheck-suppress for compatibility with upda…
This commit is contained in:
@@ -210,7 +210,7 @@ bool isFile(const std::string& f) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
fstat(fileno(fp), &fileInfo);
|
fstat(fileno(fp), &fileInfo);
|
||||||
if (!S_ISREG(fileInfo.st_mode)) {
|
if (!S_ISREG(fileInfo.st_mode)) { // cppcheck-suppress syntaxError ; false positive
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user