]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning about possibly uninitialized variables.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 24 May 2013 15:46:18 +0000 (15:46 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 24 May 2013 15:46:18 +0000 (15:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@29573 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/data_out_base.cc

index 7aa1fa1d1d94117fa6fc4501aaac3265445750a8..6e414d7e1f896beb3c55bd3d5d02c41b97a9fd43 100644 (file)
@@ -6021,7 +6021,7 @@ void DataOutBase::write_svg (const std::vector<Patch<dim,spacedim> > &patches,
           << "  </linearGradient>" << '\n';
 
       // draw current triangle
-      double x1,y1,x2,y2;
+      double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
       double x3 = cell->projected_center[0];
       double y3 = cell->projected_center[1];
    

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.