fix github issue #514 - 'O' segfault
The #version command retrieves the lua version number to include in its output, but it was leaving the 'in_lua' flag set. So if a later 'O' command tried to complain about a bad option value, the error reporting routine crashed.
This commit is contained in:
@@ -1193,7 +1193,7 @@ get_lua_version(void)
|
||||
Strcpy(g.lua_ver, vs);
|
||||
}
|
||||
}
|
||||
lua_close(L);
|
||||
nhl_done(L);
|
||||
#ifdef LUA_COPYRIGHT
|
||||
if (sizeof LUA_COPYRIGHT <= sizeof g.lua_copyright)
|
||||
Strcpy(g.lua_copyright, LUA_COPYRIGHT);
|
||||
|
||||
Reference in New Issue
Block a user