From 6ec036c955d9f66889787b9089813f07b7697632 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 29 Apr 2001 14:35:32 +0000 Subject: [PATCH] Fixed bad init in xyzv::update --- Common/Views.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/Views.cpp b/Common/Views.cpp index b98a73c4b7..824d06ef57 100644 --- a/Common/Views.cpp +++ b/Common/Views.cpp @@ -1,4 +1,4 @@ -// $Id: Views.cpp,v 1.36 2001-04-22 18:13:02 geuzaine Exp $ +// $Id: Views.cpp,v 1.37 2001-04-29 14:35:32 geuzaine Exp $ #include <set> #include "Gmsh.h" @@ -717,7 +717,7 @@ void xyzv::update (int n, double *v) if(!vals) { vals = new double[n]; - for(i=0;i<nbvals;i++)vals[i] = 0.0; + for(i=0;i<n;i++)vals[i] = 0.0; nbvals = n; nboccurences = 0; } -- GitLab