Module: kamailio
Branch: master
Commit: 26785f866eeadc6944af83ae1a57e8ff100f60f5
URL:
https://github.com/kamailio/kamailio/commit/26785f866eeadc6944af83ae1a57e8f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-12T14:32:20+02:00
core/cfg: cast pointer to long to silent compiler warning
- GH #3208
---
Modified: src/core/cfg/cfg_ctx.c
---
Diff:
https://github.com/kamailio/kamailio/commit/26785f866eeadc6944af83ae1a57e8f…
Patch:
https://github.com/kamailio/kamailio/commit/26785f866eeadc6944af83ae1a57e8f…
---
diff --git a/src/core/cfg/cfg_ctx.c b/src/core/cfg/cfg_ctx.c
index a1e761f3a21..a9f19464bec 100644
--- a/src/core/cfg/cfg_ctx.c
+++ b/src/core/cfg/cfg_ctx.c
@@ -284,7 +284,7 @@ static int cfg_update_defaults(cfg_group_meta_t *meta,
meta->array = array;
clone_done = 1;
}
- if(ginst->vars + var->offset) {
+ if((unsigned long)ginst->vars + var->offset) {
memcpy(ginst->vars + var->offset, new_val, cfg_var_size(var));
} else {
LM_ERR("invalid variable offset\n");