From 460d114a7241401719cf0b7c71162bd58cdea820 Mon Sep 17 00:00:00 2001
From: Norihiro Watanabe <norihiro.watanabe@ufz.de>
Date: Mon, 1 Jun 2015 15:50:05 +0200
Subject: [PATCH] fix a bug that new point was not initialized with zero

---
 MathLib/Point3d.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MathLib/Point3d.h b/MathLib/Point3d.h
index ebc86d6fbe1..d59fc2ab998 100644
--- a/MathLib/Point3d.h
+++ b/MathLib/Point3d.h
@@ -53,6 +53,7 @@ inline MathLib::Point3d operator*(MATRIX const& mat, MathLib::Point3d const& p)
 {
     MathLib::Point3d new_p;
     for (std::size_t i(0); i<3; ++i) {
+        new_p[i] = 0.0;
         for (std::size_t j(0); j<3; ++j) {
             new_p[i] += mat(i,j)*p[j];
         }
-- 
GitLab