mirror of
https://github.com/ceph/ceph
synced 2025-02-08 03:18:12 +00:00
rgw: trivial fix
fix coverity issue 728052 Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
e042d6be1e
commit
b5ed23d13c
@ -332,7 +332,7 @@ int RGWCopyObj_ObjStore_S3::get_params()
|
||||
if_nomatch = s->env->get("HTTP_X_AMZ_COPY_IF_NONE_MATCH");
|
||||
|
||||
const char *req_src = s->copy_source;
|
||||
if (!req_src || !req_src)
|
||||
if (!req_src)
|
||||
return -EINVAL;
|
||||
|
||||
ret = parse_copy_location(req_src, src_bucket_name, src_object);
|
||||
|
Loading…
Reference in New Issue
Block a user