[sr-dev] git:4.2: textops: fix not initialized variable for muti-part body

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 16 01:08:42 CEST 2014


Module: sip-router
Branch: 4.2
Commit: 450eaed84907357626f84ded58ae04537a63507f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=450eaed84907357626f84ded58ae04537a63507f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Oct 16 01:06:09 2014 +0200

textops: fix not initialized variable for muti-part body

(cherry picked from commit f1178c4d0e12f7d7e05bd6551ec3a841f1f23055)

---

 modules/textops/textops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/textops/textops.c b/modules/textops/textops.c
index 836f8ac..581fe12 100644
--- a/modules/textops/textops.c
+++ b/modules/textops/textops.c
@@ -1546,7 +1546,7 @@ int set_multibody_helper(struct sip_msg* msg, char* p1, char* p2, char* p3)
 	str default_delimiter = {"unique-boundary-1", 17};
 	str nc = {0,0};
 	str cth = {"Content-Type: ", 14};
-	str* nbb;
+	str* nbb = NULL;
 	unsigned int convert = 0;
 	fparam_t header;
 	header.orig = NULL;




More information about the sr-dev mailing list