From 47b827c6bceafca9378b154ef1a6576801adde89 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 16 Apr 2008 14:32:33 +0000 Subject: 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 --- qpid/cpp/src/qpid/framing/Blob.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qpid/cpp') 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; -- cgit v1.2.1