]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize a variable because operator new might throw and we'd be left with
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 4 Apr 2005 18:52:45 +0000 (18:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 4 Apr 2005 18:52:45 +0000 (18:52 +0000)
an invalid initial value.

git-svn-id: https://svn.dealii.org/trunk@10345 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_parser.cc

index 53bbefc95109d12def6fca56a03652ac9f33c67c..a5390533e3e42d6b5f50bbb296fa834dc7f683f2 100644 (file)
@@ -70,7 +70,9 @@ unsigned int SplitString(const std::string& input,
 template <int dim>
 FunctionParser<dim>::FunctionParser(const unsigned int n_components,
                                    const double       initial_time)
-  : Function<dim>(n_components, initial_time)
+                :
+                Function<dim>(n_components, initial_time),
+                fp (0)
 { 
   fp = new fparser::FunctionParser[n_components];
 }

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.