Merge pull request #1142 from DiUS/fix-boot-input-race-crash

Fix null-pointer crash on early input
This commit is contained in:
Terry Ellison 2016-03-11 00:47:44 +00:00
commit 13f519ee41
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}