(ef_open_srv): Intialize views only if all is well, so they can assume
the underlying file is open.
This commit is contained in:
parent
847bf6901c
commit
cb32ec38d6
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ ef_open_srv(void)
|
||||||
failed |= !ef_open(EF_COMM, 0);
|
failed |= !ef_open(EF_COMM, 0);
|
||||||
failed |= !ef_open(EF_LOST, 0);
|
failed |= !ef_open(EF_LOST, 0);
|
||||||
failed |= !ef_open(EF_REALM, EFF_MEM);
|
failed |= !ef_open(EF_REALM, EFF_MEM);
|
||||||
failed |= ef_init_view(EF_COUNTRY, EF_NATION);
|
if (!failed)
|
||||||
|
failed |= ef_init_view(EF_COUNTRY, EF_NATION);
|
||||||
if (failed) {
|
if (failed) {
|
||||||
logerror("Missing files, giving up");
|
logerror("Missing files, giving up");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue