]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: use bufferlist::append() instead of bufferlist::push_back()
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 18 Sep 2013 17:37:21 +0000 (10:37 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 19 Sep 2013 20:07:42 +0000 (13:07 -0700)
commitbabeb00c42af760b3e7575166479e95365cfcc0a
treebd8b1e05cee0b13547cc9bf81f2f9601f9e3d884
parentdaf85c45dd4d158bc7c33a2fb784857bc7db35cd
rgw: use bufferlist::append() instead of bufferlist::push_back()

push_back() expects char *, whereas append can append a single char.
Appending a NULL char to push_back is cast as a NULL pointer which is
bad.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 08fe028bad13096d482454a2f303158727c363ff)
src/rgw/rgw_rados.cc