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

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


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

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

---

 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