Ver código fonte

erlang: fix never used value assigned to a variable

Seudin Kasumovic 7 anos atrás
pai
commit
6542a36763
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/modules/erlang/pv_xbuff.c

+ 2 - 2
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;