summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/debug/error-gen/src/error-gen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.c b/xlators/debug/error-gen/src/error-gen.c
index 7ad2a0bd9fc..eeb7b3d0953 100644
--- a/xlators/debug/error-gen/src/error-gen.c
+++ b/xlators/debug/error-gen/src/error-gen.c
@@ -1548,7 +1548,8 @@ reconfigure (xlator_t *this, dict_t *options)
ret = 0;
out:
- gf_log (this->name, GF_LOG_DEBUG, "reconfigure returning %d", ret);
+ gf_log (this ? this->name : "error-gen", GF_LOG_DEBUG,
+ "reconfigure returning %d", ret);
return ret;
}