summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit79749f81fab85090506e236f8b625801291659a1 (patch)
tree0dbc9eea83846628db9613c02f4a5b83e5917799 /cpp/src
parent1073c7afaa52467ae565156ae58f7c6d69384949 (diff)
downloadqpid-python-79749f81fab85090506e236f8b625801291659a1.tar.gz
Fix bug in Blob::assign assigning from an empty blob.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@648706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/framing/Blob.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/framing/Blob.h b/cpp/src/qpid/framing/Blob.h
index cf81f693b0..dd86392e5b 100644
--- a/cpp/src/qpid/framing/Blob.h
+++ b/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;