trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [trafficserver] branch master updated: Cache-Tool: initialize tmp in CacheScan
Date Fri, 04 May 2018 17:58:42 GMT
This is an automated email from the ASF dual-hosted git repository.

paziz 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 65b1219  Cache-Tool: initialize tmp in CacheScan
65b1219 is described below

commit 65b1219c5bee951024db9c1e5c0ad5e79486d5b8
Author: Persia Aziz <persia@yahoo-inc.com>
AuthorDate: Fri May 4 11:41:50 2018 -0500

    Cache-Tool: initialize tmp in CacheScan
---
 cmd/traffic_cache_tool/CacheScan.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/traffic_cache_tool/CacheScan.cc b/cmd/traffic_cache_tool/CacheScan.cc
index 9778309..1e7cbd9 100644
--- a/cmd/traffic_cache_tool/CacheScan.cc
+++ b/cmd/traffic_cache_tool/CacheScan.cc
@@ -268,7 +268,7 @@ CacheScan::unmarshal(char *buf, int len, RefCountObj *block_ref)
 
   HdrHeap *heap   = (HdrHeap *)(alt->m_request_hdr.m_heap ? (buf + (intptr_t)alt->m_request_hdr.m_heap)
: nullptr);
   HTTPHdrImpl *hh = nullptr;
-  int tmp;
+  int tmp         = 0;
   if (heap != nullptr) {
     tmp = this->unmarshal(heap, len, HDR_HEAP_OBJ_HTTP_HEADER, (HdrHeapObjImpl **)&hh,
block_ref);
     if (hh == nullptr || tmp < 0) {
@@ -336,4 +336,4 @@ CacheScan::get_alternates(const char *buf, int length)
   return zret;
 }
 
-} // end namespace ct
\ No newline at end of file
+} // end namespace ct

-- 
To stop receiving notification emails like this one, please contact
paziz@apache.org.

Mime
View raw message