You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2017/05/11 00:42:14 UTC

[trafficserver] branch master updated: Coverity 1021688: Uninitialized scalar field - Cleaning up the constructor

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

sorber 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  3550957   Coverity 1021688: Uninitialized scalar field - Cleaning up the constructor
3550957 is described below

commit 3550957de15429fde28b3fc46bdb80eda598e06b
Author: Steven Feltner <sf...@godaddy.com>
AuthorDate: Wed May 10 08:30:33 2017 -0700

    Coverity 1021688: Uninitialized scalar field - Cleaning up the constructor
---
 proxy/http/remap/UrlMapping.cc | 2 +-
 proxy/http/remap/UrlMapping.h  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/proxy/http/remap/UrlMapping.cc b/proxy/http/remap/UrlMapping.cc
index e324c1c..e83d1c8 100644
--- a/proxy/http/remap/UrlMapping.cc
+++ b/proxy/http/remap/UrlMapping.cc
@@ -28,7 +28,7 @@
 /**
  *
 **/
-url_mapping::url_mapping(int rank /* = 0 */)
+url_mapping::url_mapping()
 {
   memset(_plugin_list, 0, sizeof(_plugin_list));
   memset(_instance_data, 0, sizeof(_instance_data));
diff --git a/proxy/http/remap/UrlMapping.h b/proxy/http/remap/UrlMapping.h
index f8c18c8..68f2db3 100644
--- a/proxy/http/remap/UrlMapping.h
+++ b/proxy/http/remap/UrlMapping.h
@@ -79,7 +79,7 @@ public:
 class url_mapping
 {
 public:
-  url_mapping(int rank = 0);
+  url_mapping();
   ~url_mapping();
 
   bool add_plugin(remap_plugin_info *i, void *ih);
@@ -126,7 +126,7 @@ public:
 private:
   remap_plugin_info *_plugin_list[MAX_REMAP_PLUGIN_CHAIN];
   void *_instance_data[MAX_REMAP_PLUGIN_CHAIN];
-  int _rank;
+  int _rank = 0;
 };
 
 /**

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