From 26efee2b9324f37ab505388540076accdeac5212 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 3 Jan 2017 12:06:44 -0500 Subject: [PATCH] initialize some pointers to NULL. This was caught by cppcheck. --- include/deal.II/lac/solver_cg.h | 3 +++ include/deal.II/lac/solver_richardson.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/include/deal.II/lac/solver_cg.h b/include/deal.II/lac/solver_cg.h index 574ded4a29..e64e31e569 100644 --- a/include/deal.II/lac/solver_cg.h +++ b/include/deal.II/lac/solver_cg.h @@ -337,6 +337,9 @@ SolverCG::SolverCG (SolverControl &cn, const AdditionalData &data) : Solver(cn), + Vr(NULL), + Vp(NULL), + Vz(NULL), additional_data(data) {} diff --git a/include/deal.II/lac/solver_richardson.h b/include/deal.II/lac/solver_richardson.h index 20f07b2bd2..ae13849174 100644 --- a/include/deal.II/lac/solver_richardson.h +++ b/include/deal.II/lac/solver_richardson.h @@ -193,6 +193,8 @@ SolverRichardson::SolverRichardson(SolverControl &cn, const AdditionalData &data) : Solver (cn,mem), + Vr(NULL), + Vd(NULL), additional_data(data) {} @@ -203,6 +205,8 @@ SolverRichardson::SolverRichardson(SolverControl &cn, const AdditionalData &data) : Solver (cn), + Vr(NULL), + Vd(NULL), additional_data(data) {} -- 2.39.5