Permalink
Browse files

Bug fix: CDataStream::GetAndClear() when nReadPos > 0

  • Loading branch information...
Tranz5 committed Jul 30, 2014
1 parent c14a327 commit 797c52de2db039ecc9a2d123725007c7b3d13f1a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/serialize.h
View
@@ -1000,8 +1000,8 @@ class CDataStream
}
void GetAndClear(CSerializeData &data) {
vch.swap(data);
CSerializeData().swap(vch);
data.insert(data.end(), begin(), end());
clear();
}
};

0 comments on commit 797c52d

Please sign in to comment.