浏览代码

regex: init var to avoid compile warning

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

+ 1 - 1
src/modules/regex/regex_mod.c

@@ -636,7 +636,7 @@ static int ki_pcre_match_group(sip_msg_t* _msg, str* string, int num_pcre)
 static int w_pcre_match_group(struct sip_msg* _msg, char* _s1, char* _s2)
 {
 	str string, group;
-	unsigned int num_pcre;
+	unsigned int num_pcre = 0;
 
 	if (_s1 == NULL) {
 		LM_ERR("bad parameters\n");