]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: initialize variable before call
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 5 Feb 2014 23:19:51 +0000 (15:19 -0800)
committerSage Weil <sage@inktank.com>
Fri, 7 Feb 2014 16:43:47 +0000 (08:43 -0800)
commit5b7e2b2297c730da8a6a99b1184c1bc07920db4c
tree361e18625ad44259698ebb1a36616160ccaf01b8
parentbb6d3f81a7df422b4ad682f27533983d9e574ba5
rgw: initialize variable before call

Need to initialize the truncated variable, as we sometimes ignore error
response (e.g., with ENOENT), and in such cases we can't expect it to be
set.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 9ecf3467a3efc071954c4f69a23b51e677742c1f)
src/rgw/rgw_bucket.cc