Mesa (mesa_7_7_branch): glu/sgi: Initialize member variables in class Varray.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 29 17:47:40 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 3bcf7d7d7be074246d815fdf4a486e08f5db46a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3bcf7d7d7be074246d815fdf4a486e08f5db46a3

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 29 17:46:42 2009 -0800

glu/sgi: Initialize member variables in class Varray.

---

 src/glu/sgi/libnurbs/internals/varray.cc |    8 ++++++++
 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 31cc73a..1cb2354 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 )



More information about the mesa-commit mailing list