Skip to content

Commit

Permalink
core/cfg: cast pointer to long to silent compiler warning
Browse files Browse the repository at this point in the history
- GH #3208

(cherry picked from commit 26785f8)
(cherry picked from commit 8aceadf)
(cherry picked from commit e90c246)
  • Loading branch information
miconda committed Sep 15, 2022
1 parent de4acc5 commit d7d093e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/cfg/cfg_ctx.c
Expand Up @@ -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");
Expand Down

0 comments on commit d7d093e

Please sign in to comment.