diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/framing/Blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/Blob.h b/cpp/src/qpid/framing/Blob.h index ea44dc104e..7c17611dc8 100644 --- a/cpp/src/qpid/framing/Blob.h +++ b/cpp/src/qpid/framing/Blob.h @@ -143,7 +143,7 @@ class Blob Blob& operator=(const T& x) { clear(); construct(in_place<T>(x)); return *this; } /** Get pointer to blob contents. Caller must know how to cast it. */ - void* get() { return store.address(); } + void* get() { return empty() ? 0 : store.address(); } /** Get const pointer to blob contents */ const void* get() const { return empty() ? 0 : store.address(); } |