[sr-dev] git:5.5:8c71683d: Revert "pv: handle case when var value ha flag str but null pointer"

Daniel-Constantin Mierla miconda at gmail.com
Thu Nov 11 18:18:30 CET 2021


Module: kamailio
Branch: 5.5
Commit: 8c71683d21498669a79515aad8e2565a6e081754
URL: https://github.com/kamailio/kamailio/commit/8c71683d21498669a79515aad8e2565a6e081754

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-11-11T18:17:42+01:00

Revert "pv: handle case when var value ha flag str but null pointer"

This reverts commit 2b432d35f0691d9ef6b12908909d809dbb1fa57b.

---

Modified: src/modules/pv/pv_svar.c

---

Diff:  https://github.com/kamailio/kamailio/commit/8c71683d21498669a79515aad8e2565a6e081754.diff
Patch: https://github.com/kamailio/kamailio/commit/8c71683d21498669a79515aad8e2565a6e081754.patch

---

diff --git a/src/modules/pv/pv_svar.c b/src/modules/pv/pv_svar.c
index 456e21963a..255f9f2040 100644
--- a/src/modules/pv/pv_svar.c
+++ b/src/modules/pv/pv_svar.c
@@ -90,7 +90,7 @@ script_var_t* set_var_value(script_var_t* var, int_str *value, int flags)
 {
 	if(var==0)
 		return 0;
-	if((value==NULL) || ((flags&VAR_VAL_STR) && (var->v.value.s.s==NULL)))
+	if(value==NULL)
 	{
 		if(var->v.flags&VAR_VAL_STR)
 		{




More information about the sr-dev mailing list