(ef_open_srv): Intialize views only if all is well, so they can assume

the underlying file is open.
This commit is contained in:
Markus Armbruster 2006-01-21 18:35:26 +00:00
parent 847bf6901c
commit cb32ec38d6

View file

@ -109,6 +109,7 @@ ef_open_srv(void)
failed |= !ef_open(EF_COMM, 0);
failed |= !ef_open(EF_LOST, 0);
failed |= !ef_open(EF_REALM, EFF_MEM);
if (!failed)
failed |= ef_init_view(EF_COUNTRY, EF_NATION);
if (failed) {
logerror("Missing files, giving up");