浏览代码

avpops: initialize local variable to avoid warning on db ops function

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

+ 1 - 1
modules/avpops/avpops_impl.c

@@ -291,7 +291,7 @@ int ops_dbload_avps (struct sip_msg* msg, struct fis_param *sp,
 	str *s0, *s1, *s2;
 	int_str avp_name;
 	int avp_type = 0;
-	pv_value_t xvalue;
+	pv_value_t xvalue = {0};
 
 	s0 = s1 = s2 = NULL;
 	if (!((sp->opd&AVPOPS_VAL_PVAR)||(sp->opd&AVPOPS_VAL_STR))) {