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