...
This noncompliant code example also violates ERR33-C. Detect and handle standard library errors because the value returned by fopen() is not checked for errors.
...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
| CERT C Secure Coding Standard | FIO24-C. Do not open a file that is already open EXP30-C. Do not depend on the order of evaluation for side effects |
...