Check the return value of nhl_init() on com_pager_core()

nhl_init() can return NULL.
This commit is contained in:
SHIRAKATA Kentaro
2022-02-10 05:24:34 +09:00
committed by PatR
parent 03c715f179
commit bb5150445a

View File

@@ -438,6 +438,11 @@ com_pager_core(const char *section, const char *msgid, boolean showerror)
return FALSE;
L = nhl_init();
if (!L) {
if (showerror)
impossible("com_pager: nhl_init() failed");
goto compagerdone;
}
if (!nhl_loadlua(L, QTEXT_FILE)) {
if (showerror)