mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
panic while reading from stdin (#1529)
Co-authored-by: jietao.cjt <jietao.cjt@alibaba-inc.com>
This commit is contained in:
@@ -1221,7 +1221,7 @@ static int cache_mode(lua_State *L) {
|
||||
LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename,
|
||||
const char *mode) {
|
||||
int level = cache_level(L);
|
||||
if (level == CACHE_OFF) {
|
||||
if (level == CACHE_OFF || filename == NULL) {
|
||||
return luaL_loadfilex_(L, filename, mode);
|
||||
}
|
||||
const void * proto = load_proto(filename);
|
||||
|
||||
Reference in New Issue
Block a user