Browse code

core: bug fix in PV printing related to static buffer

fix a bug in the PV printing (for k). The code allocated a static buffer, but
failed to proper initialize it with zero. Thus in certain cases old data from
previous PV evaluation is returned.
is returned

Henning Westerholt authored on 18/05/2009 17:29:30
Showing 1 changed files
... ...
@@ -1360,6 +1360,7 @@ int get_str_fparam(str* dst, struct sip_msg* msg, fparam_t* param)
1360 1360
 	avp_t* avp;
1361 1361
 	pv_value_t pv_val;
1362 1362
 	static char pve_buf[256]; /* ugly hack needed for PVE */
1363
+	memset(pve_buf, 0, sizeof(pve_buf));
1363 1364
 	
1364 1365
 	switch(param->type) {
1365 1366
 		case FPARAM_REGEX: