Fix build break due to introduction of nhassert().

This commit is contained in:
Bart House
2019-07-13 09:34:58 -07:00
parent 781b32173c
commit eb055c5152

View File

@@ -703,8 +703,16 @@ decl_globals_init()
g.valuables[2].list = NULL;
g.valuables[2].size = 0;
nhassert(g_init.magic == IVMAGIC);
nhassert(g_init.havestate == TRUE);
if (g_init.magic != IVMAGIC) {
printf("decl_globals_init: g_init.magic in unexpected state (%lx)\n",
g_init.magic);
exit(1);
}
if (g_init.havestate != TRUE) {
printf("decl_globals_init: g_init..havestate not TRUE\n");
exit(1);
}
sfcap = default_sfinfo;
sfrestinfo = default_sfinfo;