From: Vinson Lee Date: Wed, 30 Dec 2009 01:46:42 +0000 (-0800) Subject: glu/sgi: Initialize member variables in class Varray. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bcf7d7d7be074246d815fdf4a486e08f5db46a3;p=mesa.git glu/sgi: Initialize member variables in class Varray. --- diff --git a/src/glu/sgi/libnurbs/internals/varray.cc b/src/glu/sgi/libnurbs/internals/varray.cc index 31cc73a9d08..1cb235443ad 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 )