[sr-dev] git:master:6542a367: erlang: fix never used value assigned to a variable
Seudin Kasumovic
seudin.kasumovic at gmail.com
Wed Jan 3 23:25:29 CET 2018
Module: kamailio
Branch: master
Commit: 6542a367638ec5f8a2b62994f8c309e7a2533962
URL: https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e7a2533962
Author: Seudin Kasumovic <seudin.kasumovic at gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic at gmail.com>
Date: 2018-01-03T23:21:41+01:00
erlang: fix never used value assigned to a variable
---
Modified: src/modules/erlang/pv_xbuff.c
---
Diff: https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e7a2533962.diff
Patch: https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e7a2533962.patch
---
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;
More information about the sr-dev
mailing list