Skip to content

Commit

Permalink
Remove "fopen" from the error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvr committed Jan 19, 2017
1 parent cbc20d4 commit adf1291
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,12 @@ assign_rules(char *config_file, int *retval)
char *token;
struct directory_info *dir_info, *di, *last;


/* we didn't have success on the operation yet */
*retval = -1;

fp = fopen(config_file, "r");
if (! fp) {
fprintf(stderr, "fopen %s: %s\n", config_file, strerror(errno));
fprintf(stderr, "%s: %s\n", config_file, strerror(errno));
return NULL;
}

Expand Down

0 comments on commit adf1291

Please sign in to comment.