From 53cb7ff4b971fb2372d2ace4fd469933179570b3 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Tue, 6 Sep 2011 18:40:38 +0200
Subject: [PATCH] Fix warning: middle may be used uninitialized

---
 src/bisection-example-flexible.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bisection-example-flexible.cc b/src/bisection-example-flexible.cc
index 73a2e771..f4d40890 100644
--- a/src/bisection-example-flexible.cc
+++ b/src/bisection-example-flexible.cc
@@ -80,7 +80,7 @@ class SampleFunctional {
     }
 
     double m = l / 2 + r / 2;
-    SmallVector middle;
+    SmallVector middle = SmallVector(0.0);
     for (unsigned int count = 0; count < iterations; ++count) {
       Dune::dverb << "now at m = " << m << std::endl;
       Dune::dverb << "Value of J here: " << operator()(x + middle) << std::endl;
-- 
GitLab