diff --git a/liboctave/array/dim-vector.cc b/liboctave/array/dim-vector.cc --- a/liboctave/array/dim-vector.cc +++ b/liboctave/array/dim-vector.cc @@ -39,8 +39,8 @@ octave_idx_type * dim_vector::nil_rep (void) { - static dim_vector zv (0, 0); - return zv.rep; + static octave_idx_type nr[4] = { 1, 2, 0, 0 }; + return &nr[2]; } // The maximum allowed value for a dimension extent. This will normally be a