You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/05/08 19:31:33 UTC

[trafficserver] branch master updated: Coverity issues for LogFilter.cc

This is an automated email from the ASF dual-hosted git repository.

zwoop 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  ba548c5   Coverity issues for LogFilter.cc
ba548c5 is described below

commit ba548c5b1af43ab34c5800f9c7d4a4f114bad123
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Mon May 8 14:11:06 2017 -0400

    Coverity issues for LogFilter.cc
    
    CID: 1021681
    CID: 1021682
    CID: 1021683
    CID: 1021684
    CID: 1021685
---
 proxy/logging/LogFilter.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/proxy/logging/LogFilter.h b/proxy/logging/LogFilter.h
index add256c..1d92e57 100644
--- a/proxy/logging/LogFilter.h
+++ b/proxy/logging/LogFilter.h
@@ -136,12 +136,12 @@ public:
   void display(FILE *fd = stdout);
 
 private:
-  char **m_value; // the array of values
+  char **m_value = nullptr; // the array of values
 
   // these are used to speed up case insensitive operations
   //
-  char **m_value_uppercase; // m_value in all uppercase
-  size_t *m_length;         // length of m_value string
+  char **m_value_uppercase = nullptr; // m_value in all uppercase
+  size_t *m_length         = nullptr; // length of m_value string
 
   void _setValues(size_t n, char **value);
 
@@ -194,7 +194,7 @@ public:
   void display(FILE *fd = stdout);
 
 private:
-  int64_t *m_value; // the array of values
+  int64_t *m_value = nullptr; // the array of values
 
   void _setValues(size_t n, int64_t *value);
   int _convertStringToInt(char *val, int64_t *ival, LogFieldAliasMap *map);

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].