(emp_config): Failed to call set_dirs() when default econfig file
doesn't exist.
This commit is contained in:
parent
9847e27a2f
commit
a77a8c3abd
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,7 @@ emp_config(char *file)
|
|||
errno = 0;
|
||||
if ((fp = fopen(file, "r")) == NULL) {
|
||||
if (file == dflt_econfig && errno == ENOENT)
|
||||
return 0;
|
||||
goto done;
|
||||
fprintf(stderr, "Can't open %s for reading (%s)\n",
|
||||
file, strerror(errno));
|
||||
return -1;
|
||||
|
@ -150,6 +150,7 @@ emp_config(char *file)
|
|||
|
||||
fclose(fp);
|
||||
|
||||
done:
|
||||
WORLD_X &= ~1; /* force even */
|
||||
set_dirs(file);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue