summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-04-16 14:32:33 +0000
committerAlan Conway <aconway@apache.org>2008-04-16 14:32:33 +0000
commit47b827c6bceafca9378b154ef1a6576801adde89 (patch)
tree40c919f175b1b6547d0135eb565e54247dbb3f63 /qpid/cpp
parent1a3cd531b9b3d8b17119ef2e89390ce77ff31a51 (diff)
downloadqpid-python-47b827c6bceafca9378b154ef1a6576801adde89.tar.gz
Fix bug in Blob::assign assigning from an empty blob.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@648706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/framing/Blob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/framing/Blob.h b/qpid/cpp/src/qpid/framing/Blob.h
index cf81f693b0..dd86392e5b 100644
--- a/qpid/cpp/src/qpid/framing/Blob.h
+++ b/qpid/cpp/src/qpid/framing/Blob.h
@@ -122,6 +122,7 @@ class Blob
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;