Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
13f519ee
Commit
13f519ee
authored
Mar 11, 2016
by
Terry Ellison
Browse files
Merge pull request #1142 from DiUS/fix-boot-input-race-crash
Fix null-pointer crash on early input
parents
73126477
76ff5412
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/lua/lua.c
View file @
13f519ee
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment