BIND 10 master, updated. dbd014d085fbaf14fd5e4c0496c2eb9b436d6288 [master] Pass string instead of c-string in CSVFile class constructor.

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Apr 4 12:41:50 UTC 2014


The branch, master has been updated
       via  dbd014d085fbaf14fd5e4c0496c2eb9b436d6288 (commit)
      from  0c0f4c9b1f3c0b9cf3063f9e64a4c9798c0a353a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dbd014d085fbaf14fd5e4c0496c2eb9b436d6288
Author: Marcin Siodelski <marcin at isc.org>
Date:   Fri Apr 4 14:38:03 2014 +0200

    [master] Pass string instead of c-string in CSVFile class constructor.
    
    This fixes a performance issue reported by cppcheck.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/util/csv_file.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/util/csv_file.cc b/src/lib/util/csv_file.cc
index 95a95c2..3abf4ad 100644
--- a/src/lib/util/csv_file.cc
+++ b/src/lib/util/csv_file.cc
@@ -29,7 +29,7 @@ CSVRow::CSVRow(const size_t cols, const char separator)
 CSVRow::CSVRow(const std::string& text, const char separator)
     : separator_(1, separator) {
     // Parsing is exception safe, so this will not throw.
-    parse(text.c_str());
+    parse(text);
 }
 
 void



More information about the bind10-changes mailing list