From 0d98fe0c8d07f2585f4057a7622abb000110bcbe Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 1 May 2018 11:01:24 +0200 Subject: [PATCH] Initialize SUN* objects --- source/sundials/kinsol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/sundials/kinsol.cc b/source/sundials/kinsol.cc index e1817e7f33..5661507f0d 100644 --- a/source/sundials/kinsol.cc +++ b/source/sundials/kinsol.cc @@ -265,8 +265,8 @@ namespace SUNDIALS AssertKINSOL(status); #if DEAL_II_SUNDIALS_VERSION_GTE(3,0,0) - SUNMatrix J; - SUNLinearSolver LS; + SUNMatrix J = nullptr; + SUNLinearSolver LS = nullptr; #endif if (solve_jacobian_system) -- 2.39.5