Module: kamailio
Branch: master
Commit: b59607bbcf6ca872e190dfcd9abf8fc5c0f64359
URL:
https://github.com/kamailio/kamailio/commit/b59607bbcf6ca872e190dfcd9abf8fc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-30T09:01:21+01:00
debugger: explicit cast for pointer arithmetic operation
---
Modified: src/modules/debugger/debugger_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b59607bbcf6ca872e190dfcd9abf8fc…
Patch:
https://github.com/kamailio/kamailio/commit/b59607bbcf6ca872e190dfcd9abf8fc…
---
diff --git a/src/modules/debugger/debugger_mod.c b/src/modules/debugger/debugger_mod.c
index b6248644d65..c2d2dda79af 100644
--- a/src/modules/debugger/debugger_mod.c
+++ b/src/modules/debugger/debugger_mod.c
@@ -324,7 +324,7 @@ static struct action *dbg_fixup_get_action(void **param, int
param_no)
action_u_t *au;
/* param points to au->u.string, get pointer to au */
au = ksr_container_of(param, action_u_t, u.string);
- au = au - 1 - param_no;
+ au = (action_u_t *)au - 1 - param_no;
/* au points to ac->val, get pointer to ac */
ac = ksr_container_of(au, cfg_action_t, val);
return ac;