set_filenames();
check_abook_directory();
init_opts();
- load_opts(rcfile);
+ if(load_opts(rcfile)) {
+ printf("Press enter to continue...\n");
+ fgetc(stdin);
+ }
signal(SIGKILL, quit_abook_sig);
signal(SIGTERM, quit_abook_sig);
FILE *in;
char *line = NULL;
int n;
- bool err = FALSE;
+ int err = 0;
if((in = fopen(filename, "r")) == NULL)
return -1;
if(line && *line) {
opt_line_remove_comments(line);
if(*line)
- err = opt_parse_line(line, n, filename);
+ err += opt_parse_line(line, n, filename) ? 1:0;
}
my_free(line);
free(line);
- if(err) {
- printf("Press enter to continue...\n");
- fgetc(stdin);
- }
-
return err;
}