glusterd: Fix unused value coverity fix
Commit 09198e203e has introduced a new coverity with ID 1395635. keylen variable is assigned to some value but stored value is overwritten before it is used. This patch addresses the issue. updates: bz#789278 Change-Id: Ice290dcb9d703cd2131b0f0803436660e670e10a Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
This commit is contained in:
parent
09198e203e
commit
15d2b3cf85
@ -594,7 +594,7 @@ glusterd_add_volume_detail_to_dict (glusterd_volinfo_t *volinfo,
|
||||
}
|
||||
if (volinfo->caps & CAPS_BD)
|
||||
snprintf (buf, 256, "BD");
|
||||
ret = dict_set_dynstr (volumes, key, buf);
|
||||
ret = dict_set_dynstrn (volumes, key, keylen, buf);
|
||||
if (ret) {
|
||||
GF_FREE (buf);
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user