Skip to content
Snippets Groups Projects
Commit f6aac902 authored by Markus Blatt's avatar Markus Blatt
Browse files

Missed the initialization of a few variable in revision 668.

[[Imported from SVN: r693]]
parent dcbd619f
Branches
Tags
No related merge requests found
......@@ -383,6 +383,7 @@ namespace Dune {
//! make array with _n components
base_array (size_type _n)
: base_array_unmanaged<B,A>(_n, 0)
{
if (this->n>0)
this->p = A::template malloc<B>(this->n);
......@@ -397,6 +398,8 @@ namespace Dune {
base_array (const base_array& a)
{
// allocate memory with same size as a
this->n = a.n;
if (this->n>0)
this->p = A::template malloc<B>(this->n);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment