]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
value s must be initialized
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Mar 2000 22:42:17 +0000 (22:42 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Mar 2000 22:42:17 +0000 (22:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@2585 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/timer.cc

index 2df61d3f8384f4a44ed8542c7f39ec36c4147a99..d90afba052f7aca8edeef0dc376aad49d979927d 100644 (file)
@@ -37,7 +37,7 @@ void compare (double t1, double t2, double ratio)
 
 void burn (unsigned int n)
 {
-  double s;
+  double s = 0.;
   for (unsigned int i=0 ; i<n ; ++i)
     {
       for (unsigned int j=1 ; j<100000 ; ++j)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.