Check the return value of nhl_init() on com_pager_core()
nhl_init() can return NULL.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user