diff options
author | Sheetal Pamecha <sheetal.pamecha08@gmail.com> | 2018-09-10 11:01:38 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-09-11 02:26:44 +0000 |
commit | 3114c4a10672a70c8964c8cfce2ca0cc1e835a9f (patch) | |
tree | b7499ad1f1251551381c72da7ecc9c34b3646c1f | |
parent | 5384787d41d33916521fdda194875a306f406eeb (diff) |
glusterd: NULL pointer dereferencing clang fix
Added ternary operator to avoid NULL pointer dereferencing
Updates: bz#1622665
Change-Id: I4b970176b6b555c2eda1da2848c493e45b1e4217
Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-geo-rep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c index 67aac44e491..cf003ac895e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c +++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c @@ -1677,7 +1677,8 @@ glusterd_update_slave_voluuid_slaveinfo (glusterd_volinfo_t *volinfo) ret = 0; out: - gf_msg_debug (this->name, 0, "Returning %d", ret); + gf_msg_debug ((this ? this->name : "glusterd"), + 0, "Returning %d", ret); return ret; } |