rgw: trivial fix

fix coverity issue 728052

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2012-09-27 13:09:36 -07:00
parent e042d6be1e
commit b5ed23d13c

View File

@ -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);