From: wolf Date: Mon, 4 Apr 2005 18:52:45 +0000 (+0000) Subject: Initialize a variable because operator new might throw and we'd be left with X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f80131a20ebccfef1fdbc0bc8b406be2be189910;p=dealii-svn.git Initialize a variable because operator new might throw and we'd be left with an invalid initial value. git-svn-id: https://svn.dealii.org/trunk@10345 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/function_parser.cc b/deal.II/base/source/function_parser.cc index 53bbefc951..a5390533e3 100644 --- a/deal.II/base/source/function_parser.cc +++ b/deal.II/base/source/function_parser.cc @@ -70,7 +70,9 @@ unsigned int SplitString(const std::string& input, template FunctionParser::FunctionParser(const unsigned int n_components, const double initial_time) - : Function(n_components, initial_time) + : + Function(n_components, initial_time), + fp (0) { fp = new fparser::FunctionParser[n_components]; }