diff options
Diffstat (limited to 'core/src/xmake/io/filelock_trylock.c')
| -rw-r--r-- | core/src/xmake/io/filelock_trylock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/io/filelock_trylock.c b/core/src/xmake/io/filelock_trylock.c index aaf1da246..d84024834 100644 --- a/core/src/xmake/io/filelock_trylock.c +++ b/core/src/xmake/io/filelock_trylock.c @@ -53,8 +53,9 @@ tb_int_t xm_io_filelock_trylock(lua_State *lua) { } // check lock? - if (!xm_lua_ispointer(lua, 1)) + if (!xm_lua_ispointer(lua, 1)) { return 0; + } // get lock tb_filelock_ref_t lock = (tb_filelock_ref_t)xm_lua_topointer(lua, 1); |
