Module: kamailio
Branch: master
Commit: 0e5b8178de281db5ddfe30af28244a1ebaf12382
URL:
https://github.com/kamailio/kamailio/commit/0e5b8178de281db5ddfe30af28244a1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-18T14:06:49+01:00
msilo: remove redundant condition
---
Modified: src/modules/app_lua/app_lua_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0e5b8178de281db5ddfe30af28244a1…
Patch:
https://github.com/kamailio/kamailio/commit/0e5b8178de281db5ddfe30af28244a1…
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index 2be3bdd09cd..78e238437a2 100644
--- a/src/modules/app_lua/app_lua_api.c
+++ b/src/modules/app_lua/app_lua_api.c
@@ -448,7 +448,7 @@ int lua_sr_reload_script(int pos)
lock_set_release(sr_lua_locks, i);
}
} else {
- if(pos >= 0 && pos < len) {
+ if(pos < len) {
lock_set_get(sr_lua_locks, pos);
sr_lua_script_ver->version[pos] += 1;
lock_set_release(sr_lua_locks, pos);