You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2017/05/08 18:11:36 UTC
[trafficserver] branch master updated: coverity 1268009:
Uninitialized scalar field
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 dc5cb06 coverity 1268009: Uninitialized scalar field
dc5cb06 is described below
commit dc5cb062fc57189dd9c307b299fb0864813209f5
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon May 8 13:43:06 2017 -0400
coverity 1268009: Uninitialized scalar field
---
lib/wccp/Wccp.h | 4 ++--
lib/wccp/WccpLocal.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/wccp/Wccp.h b/lib/wccp/Wccp.h
index a6679e5..542ab2e 100644
--- a/lib/wccp/Wccp.h
+++ b/lib/wccp/Wccp.h
@@ -98,7 +98,7 @@ public:
typedef ServiceGroup self; ///< Self reference type.
/// Type of service.
- enum Type {
+ enum Type : uint8_t {
STANDARD = 0, ///< Well known service.
DYNAMIC = 1 ///< Dynamic (locally defined) service.
};
@@ -195,7 +195,7 @@ public:
//@}
protected:
- uint8_t m_svc_type; ///< @ref Type.
+ Type m_svc_type; ///< @ref Type.
uint8_t m_svc_id; ///< ID for service type.
uint8_t m_priority; ///< Redirection priority ordering.
uint8_t m_protocol; ///< IP protocol for service.
diff --git a/lib/wccp/WccpLocal.h b/lib/wccp/WccpLocal.h
index 708253e..9ac3a94 100644
--- a/lib/wccp/WccpLocal.h
+++ b/lib/wccp/WccpLocal.h
@@ -3363,7 +3363,7 @@ PacketStamp::set(time_t time, uint32_t sn)
return *this;
}
-inline ServiceGroup::ServiceGroup()
+inline ServiceGroup::ServiceGroup() : m_svc_type(STANDARD), m_svc_id(0), m_priority(0), m_protocol(0), m_flags(0)
{
}
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].