(emp_config): Failed to call set_dirs() when default econfig file

doesn't exist.
This commit is contained in:
Markus Armbruster 2006-03-29 13:14:55 +00:00
parent 9847e27a2f
commit a77a8c3abd

View file

@ -90,7 +90,7 @@ emp_config(char *file)
errno = 0; errno = 0;
if ((fp = fopen(file, "r")) == NULL) { if ((fp = fopen(file, "r")) == NULL) {
if (file == dflt_econfig && errno == ENOENT) if (file == dflt_econfig && errno == ENOENT)
return 0; goto done;
fprintf(stderr, "Can't open %s for reading (%s)\n", fprintf(stderr, "Can't open %s for reading (%s)\n",
file, strerror(errno)); file, strerror(errno));
return -1; return -1;
@ -150,6 +150,7 @@ emp_config(char *file)
fclose(fp); fclose(fp);
done:
WORLD_X &= ~1; /* force even */ WORLD_X &= ~1; /* force even */
set_dirs(file); set_dirs(file);