From: lihongjie Date: Wed, 12 Apr 2017 09:18:01 +0000 (+0800) Subject: rgw: avoid using null pointer in rgw_file.cc X-Git-Tag: v12.0.2~85^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4be4054d8ffd50f30adbafd2093b4b700d32ed06;p=ceph-ci.git rgw: avoid using null pointer in rgw_file.cc When rgw_fh doesn't exist, we should not use rgw_fh->full_object_name(). Signed-off-by: lihongjie --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index eb24db6d95a..73bfd37bdcb 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -339,7 +339,7 @@ namespace rgw { if (! rgw_fh) { ldout(get_context(), 0) << __func__ << " BUG no such src renaming path=" - << rgw_fh->full_object_name() + << src_name << dendl; goto out; }