Module: kamailio
Branch: master
Commit: f19cff46ae1f27a456e276ea891154aeb0a51e08
URL:
https://github.com/kamailio/kamailio/commit/f19cff46ae1f27a456e276ea891154a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-11-19T08:44:49+01:00
Revert "pv: fix condition in detecting the null string value when setting
$var(...)"
This reverts commit ffe311939ebf58e7418940ec6c71bfaf9b21afad.
---
Modified: src/modules/pv/pv_svar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f19cff46ae1f27a456e276ea891154a…
Patch:
https://github.com/kamailio/kamailio/commit/f19cff46ae1f27a456e276ea891154a…
---
diff --git a/src/modules/pv/pv_svar.c b/src/modules/pv/pv_svar.c
index 5f4626b8d6..456e21963a 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) && (value->s.s==NULL)))
+ if((value==NULL) || ((flags&VAR_VAL_STR) && (var->v.value.s.s==NULL)))
{
if(var->v.flags&VAR_VAL_STR)
{