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-12 07:45:46 -08:00
committed by PatR
parent 03c715f179
commit bb5150445a
+5
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)