diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2022-01-08 18:49:48 +0100 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2022-01-09 23:26:11 +0100 |
| commit | 44a8dc320b0acbe6e929f905e455353527bd3c65 (patch) | |
| tree | d0c769a1f589d2e5dde6bd396b59ea77935d5ebf | |
| parent | 6584bdfd33d7e255a816e07e35e56737734c3cd6 (diff) | |
| download | lite-xl-44a8dc320b0acbe6e929f905e455353527bd3c65.tar.gz lite-xl-44a8dc320b0acbe6e929f905e455353527bd3c65.zip | |
Fix some errors with previous commits
| -rw-r--r-- | lib/dmon/dmon_extra.h | 1 | ||||
| -rw-r--r-- | src/api/system.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/dmon/dmon_extra.h b/lib/dmon/dmon_extra.h index 2252c88e..9c6411af 100644 --- a/lib/dmon/dmon_extra.h +++ b/lib/dmon/dmon_extra.h @@ -139,7 +139,6 @@ DMON_API_IMPL bool dmon_watch_rm(dmon_watch_id id, const char* watchdir) } } if (i >= c) { - *error_code = DMON_ERROR_SUBDIR_LOCATION; if (!skip_lock) pthread_mutex_unlock(&_dmon.mutex); return false; diff --git a/src/api/system.c b/src/api/system.c index 45776b51..4e134e91 100644 --- a/src/api/system.c +++ b/src/api/system.c @@ -754,7 +754,7 @@ static int f_watch_dir_add(lua_State *L) { watch_id.id = luaL_checkinteger(L, 1); const char *subdir = luaL_checkstring(L, 2); dmon_error error_code; - int success = dmon_watch_add(watch_id, subdir, &error_code) + int success = dmon_watch_add(watch_id, subdir, &error_code); if (!success) { lua_pushboolean(L, 0); lua_pushstring(L, dmon_error_str(error_code)); |
