diff options
author | Amar Tumballi <amarts@redhat.com> | 2019-06-14 12:53:15 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-15 03:55:54 +0000 |
commit | 06ee9e13db03a02b343a5d44cae3c4a5da48bf8a (patch) | |
tree | df6d130557394770691bd4d587bb38bb860653f3 /xlators/mgmt/glusterd/src/glusterd-peer-utils.h | |
parent | 836c7ec096ebff089482f1e5a25fa55df28b14ea (diff) |
clang-scan: resolve warning
dht-common.c: because there was a 'goto err' before assigning
the 'local' variable, there is possibility of NULL
dereference. As the check which was done wouldn't
ever be true, removed the check.
glusterd-geo-rep.c: a possible path where 'slave_host' could be
NULL when it gets passed to strcmp() is found.
strcmp() expects a valid string. Add a NULL check.
Updates: bz#1622665
Change-Id: I64c280bc1beac9a2b109e8fa88f2a5ce8b823c3a
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-peer-utils.h')
0 files changed, 0 insertions, 0 deletions