From c8100dfe65e04cf818b7535fbec658667b9d5dbb Mon Sep 17 00:00:00 2001 From: sanoj-unnikrishnan Date: Wed, 29 Aug 2018 14:45:50 +0530 Subject: Quota: Fix for clang issues Updates: bz#1193929 Change-Id: I549f741fbf97ee3fa2d63edacee5b705ef37c49a Signed-off-by: sanoj-unnikrishnan --- xlators/features/marker/src/marker-quota-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/marker/src/marker-quota-helper.c') diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c index 92d4094e7f8..1fbadcfe9d3 100644 --- a/xlators/features/marker/src/marker-quota-helper.c +++ b/xlators/features/marker/src/marker-quota-helper.c @@ -305,7 +305,8 @@ mq_dict_set_contribution (xlator_t *this, dict_t *dict, loc_t *loc, out: if (ret < 0) - gf_log_callingfn (this->name, GF_LOG_ERROR, "dict set failed"); + gf_log_callingfn (this ? this->name : "Marker", + GF_LOG_ERROR, "dict set failed"); return ret; } -- cgit