]> git-server-git.apps.pok.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:23:30 +0000 (11:23 -0800)
commit9019fbbe8f84f530b6a8700dfe99dfeb03e0ed3d
treedeb1506afdedbc03a785e9010f2437bfe83ed275
parente0acc330cb26e2cb47f21ce08b5bffc5c6c3c539
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>
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_s3.cc