diff options
author | Harpreet Lalwani <hlalwani@redhat.com> | 2018-09-10 11:37:35 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-09-11 05:57:54 +0000 |
commit | 170e848b940615eb9f366211d7a79cc3033902cb (patch) | |
tree | fad7952d2387f72a01e5dad4a32323e7b22eca0a | |
parent | 5afff66b254e2c86eee287b5233e5a5305ad0788 (diff) |
glusterd: NULL pointer dereferencing clang fix
problem: NULL point dereferencing
solution: Adding a conditional statement before and then dereferencing it.
Updates: bz#1622665
Change-Id: I562ca90aebf2a4882cfea10114a90364d9ef1996
Signed-off-by: Harpreet Lalwani <hlalwani@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 592bc16468a..f8e30d060a4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -7920,8 +7920,7 @@ out: if (ev_ctx && ev_ctx->rsp_dict) dict_unref (ev_ctx->rsp_dict); GF_FREE (ev_ctx); - gf_msg_debug (this->name, 0, "Returning %d", ret); - + gf_msg_debug (this ? this->name : "glusterd", 0, "Returning %d", ret); return ret; } |