[sr-dev] [kamailio] pv: Fixed assigning $null to $vn(name) pvs (#153)
Jon Bergli Heier
notifications at github.com
Thu May 7 16:38:26 CEST 2015
Pass NULL as value to set_var_value when assigning a NULL or PV_VAL_NULL value to a pv with the VAR_TYPE_NULL flag set.
Previously assigning $null didn't work as expected:
`$vn(foo) = $null` would result in `$vn(foo)` being assigned `0` (this can be verified by either logging the value or testing with an if statement).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/153
-- Commit Summary --
* pv: Fixed assigning $null to $vn(name) pvs
-- File Changes --
M modules/pv/pv_core.c (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/153.patch
https://github.com/kamailio/kamailio/pull/153.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150507/fe254178/attachment.html>
More information about the sr-dev
mailing list