]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize variable.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 16 Jul 2010 12:10:18 +0000 (12:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 16 Jul 2010 12:10:18 +0000 (12:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@21507 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/iterative_inverse.h

index 90e13a3381c55acb7dadc8799dcd4039f72faed7..fe612be333882ca105e33ee8463b23b4cf5aa537 100644 (file)
@@ -141,7 +141,7 @@ void
 IterativeInverse<VECTOR>::initialize(const MATRIX& m, const PRECONDITION& p)
 {
                                   // dummy variable
-  VECTOR* v;
+  VECTOR* v = 0;
   matrix = std_cxx1x::shared_ptr<PointerMatrixBase<VECTOR> > (new_pointer_matrix_base(m, *v));
   preconditioner = std_cxx1x::shared_ptr<PointerMatrixBase<VECTOR> > (new_pointer_matrix_base(p, *v));
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.