From bfc6a08b2e3f8f4a43280340decb91303336ed46 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 22 Aug 2012 09:54:27 -0700 Subject: [PATCH] csv: initialize variables to prevent gcc warnings - refs #1330 --- plugins/input/csv/csv_utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/csv/csv_utils.hpp b/plugins/input/csv/csv_utils.hpp index d50eb8c6d..127837505 100644 --- a/plugins/input/csv/csv_utils.hpp +++ b/plugins/input/csv/csv_utils.hpp @@ -32,8 +32,8 @@ namespace csv_utils static void fix_json_quoting(std::string & csv_line) { std::string wrapping_char; - std::string::size_type j_idx; - std::string::size_type post_idx; + std::string::size_type j_idx = std::string::npos; + std::string::size_type post_idx = std::string::npos; std::string::size_type j_idx_double = csv_line.find("\"{"); std::string::size_type j_idx_single = csv_line.find("'{"); if (j_idx_double != std::string::npos)