summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSheetal Pamecha <sheetal.pamecha08@gmail.com>2018-12-13 17:59:20 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-29 02:52:21 +0000
commita12bdfa72af9cc8df21d25b580058b49f3aa154a (patch)
treef7f9d2df7e0a739bf2746a42c73b518243103eda /xlators
parentcd29723ab1a572fd9c2ceb3414b11d654cb9a08a (diff)
glusterd: NULL pointer dereferencing clang fix
Added ternary operator to avoid this issue Updates: bz#1622665 Change-Id: I163d0628304a0d61249d1d97a4a3d3bee4ba4927 Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-bitd-svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c b/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c
index d140b19099f..6adb799b18f 100644
--- a/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c
+++ b/xlators/mgmt/glusterd/src/glusterd-bitd-svc.c
@@ -201,6 +201,6 @@ manager:
ret = priv->bitd_svc.manager(&(priv->bitd_svc), NULL, PROC_START_NO_WAIT);
out:
- gf_msg_debug(this->name, 0, "Returning %d", ret);
+ gf_msg_debug(this ? this->name : "glusterd", 0, "Returning %d", ret);
return ret;
}