]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Initialize a variable to avoid (spurious) warnings.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jan 2009 23:58:12 +0000 (23:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 18 Jan 2009 23:58:12 +0000 (23:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@18228 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 413110fdc1bd031841db80f8742fe961ad79611b..92616e2a85adbb6283814a3a387d02a8233aa08b 100644 (file)
@@ -2727,7 +2727,7 @@ void DataOutBase::write_eps (const std::vector<Patch<dim,spacedim> > &patches,
                                   // Array for z-coordinates of points.
                                   // The elevation determined by a function if spacedim=2
                                   // or the z-cooridate of the grid point if spacedim=3
-  double heights[4];
+  double heights[4] = { 0, 0, 0, 0 };
 
                                   // compute the cells for output and
                                   // enter them into the set above

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.