glusterd: NULL pointer dereferencing clang Fix

Added ternary operator to avoid NULL pointer dereferencing

Updates: bz#1622665

Change-Id: I855f6caf720b28af1564898d75c6c965bcc58c5c
Signed-off-by: Harpreet Lalwani <hlalwani@redhat.com>
This commit is contained in:
Harpreet Lalwani 2018-09-11 23:00:14 +05:30 committed by Atin Mukherjee
parent bdfe87d56b
commit f7f281900b

View File

@ -1342,7 +1342,7 @@ out:
if (slave_host)
GF_FREE(slave_host);
gf_msg_debug(this->name, 0, "Returning %d.", ret);
gf_msg_debug(this ? this->name : "glusterd", 0, "Returning %d.", ret);
return ret;
}