]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix setting of NULL to string
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 1 Feb 2013 18:56:11 +0000 (10:56 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 4 Feb 2013 19:24:11 +0000 (11:24 -0800)
commitf57d1b4c8cc4d08c6147423d7881be55ed2e88d9
treee45aff99fe4962a2cc2bddfa54affa91371dec4e
parent55687240b2de20185524de07e67f42c3b1ae6592
rgw: fix setting of NULL to string

Fixes: #3777
s->env->get() returns char * and not string and can return NULL.
Also, remove some old unused code.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 9019fbbe8f84f530b6a8700dfe99dfeb03e0ed3d)
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_s3.cc