Merge pull request #1142 from DiUS/fix-boot-input-race-crash
Fix null-pointer crash on early input
This commit is contained in:
commit
13f519ee41
|
@ -468,7 +468,7 @@ int lua_main (int argc, char **argv) {
|
|||
|
||||
void lua_handle_input (bool force)
|
||||
{
|
||||
if (force || readline (&gLoad))
|
||||
if (gLoad.L && (force || readline (&gLoad)))
|
||||
dojob (&gLoad);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue