This is an automated email from the ASF dual-hosted git repository. bcall 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 1965cfc coverity 1268008: Uninitialized scalar field 1965cfc is described below commit 1965cfc84a8afbb6f91acb9f9b71706a87fbd904 Author: Bryan Call <bc...@apache.org> AuthorDate: Mon May 8 15:50:59 2017 -0400 coverity 1268008: Uninitialized scalar field --- lib/wccp/WccpLocal.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/wccp/WccpLocal.h b/lib/wccp/WccpLocal.h index 9ac3a94..2f71779 100644 --- a/lib/wccp/WccpLocal.h +++ b/lib/wccp/WccpLocal.h @@ -1594,18 +1594,18 @@ protected: /// Fill the cached values. void cache() const; - int m_count; ///< # of elements. - /** Whether the style values are valid. - We load all the values on the first request because we have to walk - all the capabilities anyway, and cache them. - */ - mutable bool m_cached; + int m_count = 0; ///< # of elements. + /** Whether the style values are valid. + We load all the values on the first request because we have to walk + all the capabilities anyway, and cache them. + */ + mutable bool m_cached = false; /// Style used to forward packets to cache. - mutable ServiceGroup::PacketStyle m_packet_forward; + mutable ServiceGroup::PacketStyle m_packet_forward = ServiceGroup::PacketStyle::NO_PACKET_STYLE; /// Style used to return packets to the router. - mutable ServiceGroup::PacketStyle m_packet_return; + mutable ServiceGroup::PacketStyle m_packet_return = ServiceGroup::PacketStyle::NO_PACKET_STYLE; /// Style used to make cache assignments. - mutable ServiceGroup::CacheAssignmentStyle m_cache_assign; + mutable ServiceGroup::CacheAssignmentStyle m_cache_assign = ServiceGroup::CacheAssignmentStyle::NO_CACHE_ASSIGN_STYLE; }; /** Sect 5.6.10: Alternate Assignment Component @@ -3576,7 +3576,7 @@ inline RouterViewComp::RouterViewComp() : m_cache_count(0) memset(m_cache_ids, 0, sizeof(m_cache_ids)); } -inline CapComp::CapComp() : m_count(0), m_cached(false) +inline CapComp::CapComp() { } inline CapComp & -- To stop receiving notification emails like this one, please contact ['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].