Module: kamailio
Branch: 5.0
Commit: e1b30f138765eef051b1e5cd11a29d44cdb09209
URL:
https://github.com/kamailio/kamailio/commit/e1b30f138765eef051b1e5cd11a29d4…
Author: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic(a)gmail.com>
Date: 2018-01-04T09:27:08+01:00
erlang: fix never used value assigned to a variable
(cherry picked from commit 6542a367638ec5f8a2b62994f8c309e7a2533962)
---
Modified: src/modules/erlang/pv_xbuff.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e1b30f138765eef051b1e5cd11a29d4…
Patch:
https://github.com/kamailio/kamailio/commit/e1b30f138765eef051b1e5cd11a29d4…
---
diff --git a/src/modules/erlang/pv_xbuff.c b/src/modules/erlang/pv_xbuff.c
index 1682e52f3b..ce6e2bd2eb 100644
--- a/src/modules/erlang/pv_xbuff.c
+++ b/src/modules/erlang/pv_xbuff.c
@@ -87,10 +87,10 @@ sr_xavp_t *xbuff_new(str *name)
if(!xbuffs_root)
{
xbuff = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
+ } else {
+ xbuff = xavp_get_child(&xbuff_list, name);
}
- xbuff=xavp_get_child(&xbuff_list, name);
-
if (!xbuff) {
xbuff_val.type = SR_XTYPE_NULL;