From 34f326d0eb5505fe4164a76f6d4d05b0c38cfdec Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 19 Mar 2025 15:43:53 +0000 Subject: [PATCH] =?UTF-8?q?sipmsgops:=20fix=20warning:=20=E2=80=98*?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized=20[-Wmaybe-uninitia?= =?UTF-8?q?lized]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/sipmsgops/sipmsgops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/sipmsgops/sipmsgops.c b/modules/sipmsgops/sipmsgops.c index 8b7016bb84..da7b967c0b 100644 --- a/modules/sipmsgops/sipmsgops.c +++ b/modules/sipmsgops/sipmsgops.c @@ -1016,8 +1016,8 @@ static int add_body_part_f(struct sip_msg *msg, str *body, str *mime, static int get_updated_body_part_f(struct sip_msg *msg, int *type, pv_spec_t* res) { static str out = {NULL, 0}; - struct body_part *p, *it; - unsigned int out_offs, orig_offs, parts; + struct body_part *p = NULL, *it; + unsigned int out_offs, orig_offs, parts = 0; pv_value_t val;