summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-11-20 09:36:17 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-11-20 09:36:17 +0100
commit57c1f0f4b36b934c8fc54c8691f77b9b6d0eff9d (patch)
tree0ad9cc5b2e5abcea21369ede805733c8ab54b6e5 /src/common
parent7008061749a52e9717d550b44efe60173f4128b5 (diff)
Code review : rollback array init
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/gudhi/reader_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/include/gudhi/reader_utils.h b/src/common/include/gudhi/reader_utils.h
index ee811967..5e96b5db 100644
--- a/src/common/include/gudhi/reader_utils.h
+++ b/src/common/include/gudhi/reader_utils.h
@@ -305,7 +305,7 @@ void read_persistence_intervals_and_dimension(std::string const& filename, Outpu
std::string line;
getline(in, line);
if (line.length() != 0 && line[0] != '#') {
- double numbers[4] = {0.};
+ double numbers[4];
int n = sscanf(line.c_str(), "%lf %lf %lf %lf", &numbers[0], &numbers[1], &numbers[2], &numbers[3]);
#ifdef DEBUG_TRACES
std::cout << "[" << n << "] = " << numbers[0] << "," << numbers[1]