summaryrefslogtreecommitdiff
path: root/core/src/xmake/fwatcher/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/xmake/fwatcher/remove.c')
-rw-r--r--core/src/xmake/fwatcher/remove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/xmake/fwatcher/remove.c b/core/src/xmake/fwatcher/remove.c
index 6285b0649..a3636dbe3 100644
--- a/core/src/xmake/fwatcher/remove.c
+++ b/core/src/xmake/fwatcher/remove.c
@@ -39,8 +39,9 @@ tb_int_t xm_fwatcher_remove(lua_State *lua) {
tb_assert_and_check_return_val(lua, 0);
// is pointer?
- if (!xm_lua_ispointer(lua, 1))
+ if (!xm_lua_ispointer(lua, 1)) {
return 0;
+ }
// get the fwatcher
tb_fwatcher_ref_t fwatcher = (tb_fwatcher_ref_t)xm_lua_topointer(lua, 1);