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:
parent
bdfe87d56b
commit
f7f281900b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user