Browse code

core/cfg: cast pointer to long to silent compiler warning

- GH #3208

Daniel-Constantin Mierla authored on 12/08/2022 12:31:48
Showing 1 changed files
... ...
@@ -284,7 +284,7 @@ static int cfg_update_defaults(cfg_group_meta_t	*meta,
284 284
 				meta->array = array;
285 285
 				clone_done = 1;
286 286
 			}
287
-			if(ginst->vars + var->offset) {
287
+			if((unsigned long)ginst->vars + var->offset) {
288 288
 				memcpy(ginst->vars + var->offset, new_val, cfg_var_size(var));
289 289
 			} else {
290 290
 				LM_ERR("invalid variable offset\n");