Module: kamailio
Branch: master
Commit: 8ed4165fd3b0a331a4580894e2e7f83456b474fa
URL:
https://github.com/kamailio/kamailio/commit/8ed4165fd3b0a331a4580894e2e7f83…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-12-21T11:23:51Z
pv: remove redunant variable definition (warning: unused variable ������innerIndex������)
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8ed4165fd3b0a331a4580894e2e7f83…
Patch:
https://github.com/kamailio/kamailio/commit/8ed4165fd3b0a331a4580894e2e7f83…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 4b8f98bcfd3..5375e95c418 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -2375,7 +2375,7 @@ int pv_get_hfl(sip_msg_t *msg, pv_param_t *param, pv_value_t *res)
while(db != NULL) {
if(n + db->num_ids > idx) {
/* Calculate the index within this specific list */
- int innerIndex = idx - n;
+ innerIndex = idx - n;
/* Access the desired element within this list */
sval.s = db->id[innerIndex].body.s;