From d06dbcc0912c2205b1ba88dd1b6a107dff8f032f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 4 Apr 2005 18:52:45 +0000 Subject: [PATCH] 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 --- deal.II/base/source/function_parser.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } -- 2.39.5