Signed-off-by: Sage Weil <sage@redhat.com>
template<bool is_const>
void buffer::list::iterator_impl<is_const>::copy_deep(unsigned len, ptr &dest)
{
+ if (!len) {
+ return;
+ }
if (p == ls->end())
throw end_of_buffer();
assert(p->length() > 0);
void buffer::list::iterator_impl<is_const>::copy_shallow(unsigned len,
ptr &dest)
{
+ if (!len) {
+ return;
+ }
if (p == ls->end())
throw end_of_buffer();
assert(p->length() > 0);