Author: aconway
Date: Wed Apr 16 07:32:33 2008
New Revision: 648706
URL: http://svn.apache.org/viewvc?rev=648706&view=rev
Log:
Fix bug in Blob::assign assigning from an empty blob.
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h
Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h?rev=648706&r1=648705&r2=648706&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/framing/Blob.h Wed Apr 16 07:32:33
2008
@@ -122,6 +122,7 @@
void assign(const Blob& b) {
assert(empty());
+ if (b.empty()) return;
b.copy(this->store.address(), b.store.address());
copy = b.copy;
destroy = b.destroy;