diff options
| author | Alan Conway <aconway@apache.org> | 2007-08-20 13:28:55 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-08-20 13:28:55 +0000 |
| commit | fb7b5ae9627ea45c26ef841e9976b3891a6c3063 (patch) | |
| tree | 0b85abfe37a4f83af9bccf4b7e13acf3175a04a9 /qpid/cpp | |
| parent | e4fc33d57640ef4bcbe010acf0f00c4c782783ca (diff) | |
| download | qpid-python-fb7b5ae9627ea45c26ef841e9976b3891a6c3063.tar.gz | |
get() returns 0 if Blob is empty.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@567698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/framing/Blob.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/framing/Blob.h b/qpid/cpp/src/qpid/framing/Blob.h index ea44dc104e..7c17611dc8 100644 --- a/qpid/cpp/src/qpid/framing/Blob.h +++ b/qpid/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(); } |
