diff options
author | Vijay Bellur <vbellur@redhat.com> | 2018-08-23 16:11:25 -0700 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-08-24 11:17:57 +0000 |
commit | 3cb5b63a0a78048f8d09e59ab5d79bc2f659ed17 (patch) | |
tree | 08f26364586decf5920b4bcb3ef9151274b725b9 /xlators/debug/error-gen/src | |
parent | 9c49927e64b238cb077ae26c4e77bfe5bfc6a6bd (diff) |
debug/error-gen: Prevent a possible null dereference
Addresses CID: 1124492
Change-Id: I92f807b5e45537e68c318bcbf54ccaa23d18b0dd
Updates: bz#789278
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/debug/error-gen/src')
-rw-r--r-- | xlators/debug/error-gen/src/error-gen.c | 3 |
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; } |