FILE *fp;
char *entry = NULL;
- if ( fp = fopen( filename, "r" )) {
+ if ( (fp = fopen( filename, "r" )) != NULL ) {
char line[BUFSIZ];
if ( fgets( line, BUFSIZ, fp )) {
FILE *fp;
int filter = 0;
- if ( fp = fopen( filename, "r" )) {
+ if ( (fp = fopen( filename, "r" )) != NULL ) {
char line[BUFSIZ];
while (( filter < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {
FILE *fp;
int entry = 0;
- if ( fp = fopen( filename, "r" )) {
+ if ( (fp = fopen( filename, "r" )) != NULL ) {
char line[BUFSIZ];
while (( entry < MAXREQS ) && ( fgets( line, BUFSIZ, fp ))) {