浏览代码

textops: fix not initialized variable for muti-part body

Daniel-Constantin Mierla 11 年之前
父节点
当前提交
f1178c4d0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/textops/textops.c

+ 1 - 1
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;