Module: kamailio Branch: master Commit: b3cf61d106d5ffc34fc338f34bc1193bd5bb5b3e URL: https://github.com/kamailio/kamailio/commit/b3cf61d106d5ffc34fc338f34bc1193bd5bb5b3e
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-27T13:18:24+01:00 core: init locals in copy_reply_lump_list() --- Modified: src/core/data_lump_rpl.c --- Diff: https://github.com/kamailio/kamailio/commit/b3cf61d106d5ffc34fc338f34bc1193bd5bb5b3e.diff Patch: https://github.com/kamailio/kamailio/commit/b3cf61d106d5ffc34fc338f34bc1193bd5bb5b3e.patch --- diff --git a/src/core/data_lump_rpl.c b/src/core/data_lump_rpl.c index e3b322f97d8..36cfb0fc02a 100644 --- a/src/core/data_lump_rpl.c +++ b/src/core/data_lump_rpl.c @@ -127,12 +127,11 @@ void free_reply_lump_list(struct lump_rpl *lump) struct lump_rpl *copy_reply_lump_list(struct lump_rpl *lump_list) { - struct lump_rpl *nlump; - struct lump_rpl *flump; - struct lump_rpl *llump; - struct lump_rpl *clump; + struct lump_rpl *nlump = NULL; + struct lump_rpl *flump = NULL; + struct lump_rpl *llump = NULL; + struct lump_rpl *clump = NULL; - flump = NULL; for(clump = lump_list; clump; clump = clump->next) { nlump = (struct lump_rpl *)pkg_malloc( sizeof(struct lump_rpl) + clump->text.len + 1); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
