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 27a5127 coverity 1021704: Uninitialized pointer field
27a5127 is described below
commit 27a5127380c0c55b86a49414b788db4240bffe37
Author: Bryan Call <[email protected]>
AuthorDate: Thu May 11 17:50:00 2017 -0400
coverity 1021704: Uninitialized pointer field
---
proxy/logging/LogCollationAccept.cc | 2 +-
proxy/logging/LogCollationAccept.h | 4 ++--
proxy/shared/UglyLogStubs.cc | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/proxy/logging/LogCollationAccept.cc
b/proxy/logging/LogCollationAccept.cc
index 2926099..1a66919 100644
--- a/proxy/logging/LogCollationAccept.cc
+++ b/proxy/logging/LogCollationAccept.cc
@@ -36,7 +36,7 @@
// LogCollationAccept::LogCollationAccept
//-------------------------------------------------------------------------
-LogCollationAccept::LogCollationAccept(int port) :
Continuation(new_ProxyMutex()), m_port(port), m_pending_event(nullptr)
+LogCollationAccept::LogCollationAccept(int port) :
Continuation(new_ProxyMutex()), m_port(port)
{
NetProcessor::AcceptOptions opt;
SET_HANDLER((LogCollationAcceptHandler)&LogCollationAccept::accept_event);
diff --git a/proxy/logging/LogCollationAccept.h
b/proxy/logging/LogCollationAccept.h
index b89f4ef..45ba881 100644
--- a/proxy/logging/LogCollationAccept.h
+++ b/proxy/logging/LogCollationAccept.h
@@ -36,8 +36,8 @@ public:
private:
int m_port;
- Action *m_accept_action;
- Event *m_pending_event;
+ Action *m_accept_action = nullptr;
+ Event *m_pending_event = nullptr;
};
typedef int (LogCollationAccept::*LogCollationAcceptHandler)(int, void *);
diff --git a/proxy/shared/UglyLogStubs.cc b/proxy/shared/UglyLogStubs.cc
index c083af4..5371b80 100644
--- a/proxy/shared/UglyLogStubs.cc
+++ b/proxy/shared/UglyLogStubs.cc
@@ -76,7 +76,7 @@ Machine::instance()
}
#include "LogCollationAccept.h"
-LogCollationAccept::LogCollationAccept(int port) :
Continuation(new_ProxyMutex()), m_port(port), m_pending_event(nullptr)
+LogCollationAccept::LogCollationAccept(int port) :
Continuation(new_ProxyMutex()), m_port(port)
{
}
LogCollationAccept::~LogCollationAccept()
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].