From: Wolfgang Bangerth 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-Tag: v8.0.0~14202 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d06dbcc0912c2205b1ba88dd1b6a107dff8f032f;p=dealii.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]; }