RESOURCE-deref-file
In this section:
Synopsis
A pointer to a FILE object is dereferenced.
Enabled by default
No
Severity/Certainty
Low/Medium

Full description
A pointer to a FILE object is dereferenced.
Coding standards
This check does not correspond to any coding standard rules.
Code examples
The following code example fails the check and will give a warning:
#include <stdio.h>
void example(void) {
FILE *pf1;
FILE f3;
f3 = *pf1;
}
The following code example passes the check and will not give a warning about this issue:
#include <stdio.h>
void example(void) {
FILE *f1;
FILE *f2;
f1 = f2;
}