This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 28a6101 obj_found is never be true
28a6101 is described below
commit 28a6101cb3360ff1d654ed88f4ce50767b569724
Author: scw00 <[email protected]>
AuthorDate: Sat Apr 22 13:31:55 2017 +0800
obj_found is never be true
---
proxy/hdrs/HdrHeap.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxy/hdrs/HdrHeap.cc b/proxy/hdrs/HdrHeap.cc
index 842025d..87490dd 100644
--- a/proxy/hdrs/HdrHeap.cc
+++ b/proxy/hdrs/HdrHeap.cc
@@ -861,7 +861,7 @@ HdrHeap::check_marshalled(uint32_t buf_length)
int
HdrHeap::unmarshal(int buf_length, int obj_type, HdrHeapObjImpl **found_obj,
RefCountObj *block_ref)
{
- bool obj_found = false;
+ *found_obj = nullptr;
// Check out this heap and make sure it is OK
if (m_magic != HDR_BUF_MAGIC_MARSHALED) {
@@ -929,7 +929,7 @@ HdrHeap::unmarshal(int buf_length, int obj_type,
HdrHeapObjImpl **found_obj, Ref
HdrHeapObjImpl *obj = (HdrHeapObjImpl *)obj_data;
ink_assert(obj_is_aligned(obj));
- if (obj->m_type == (unsigned)obj_type && obj_found == false) {
+ if (obj->m_type == (unsigned)obj_type && *found_obj == nullptr) {
*found_obj = obj;
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].