summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-29 17:46:42 -0800
committerVinson Lee <vlee@vmware.com>2009-12-29 17:46:42 -0800
commit3bcf7d7d7be074246d815fdf4a486e08f5db46a3 (patch)
tree287c6eb749d4f0bd029e79ae7cef05e10c4c35d3
parenta7db305c2f9fd4ee43b12ed0ef19efc1532cc30d (diff)
glu/sgi: Initialize member variables in class Varray.
-rw-r--r--src/glu/sgi/libnurbs/internals/varray.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glu/sgi/libnurbs/internals/varray.cc b/src/glu/sgi/libnurbs/internals/varray.cc
index 31cc73a9d0..1cb235443a 100644
--- a/src/glu/sgi/libnurbs/internals/varray.cc
+++ b/src/glu/sgi/libnurbs/internals/varray.cc
@@ -53,8 +53,16 @@ inline long sgn( REAL x )
Varray::Varray( void )
{
+ int i;
+
varray = 0;
size = 0;
+ numquads = 0;
+
+ for (i = 0; i < 1000; i++) {
+ vval[i] = 0;
+ voffset[i] = 0;
+ }
}
Varray::~Varray( void )