Skip to content

Commit

Permalink
erlang: fix never used value assigned to a variable
Browse files Browse the repository at this point in the history
(cherry picked from commit 6542a36)
  • Loading branch information
seudin committed Jan 4, 2018
1 parent f85f103 commit cb5d201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/erlang/pv_xbuff.c
Expand Up @@ -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;
Expand Down

0 comments on commit cb5d201

Please sign in to comment.