glu/sgi: Initialize members of class Curve.
authorVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 06:04:59 +0000 (22:04 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 06:04:59 +0000 (22:04 -0800)
src/glu/sgi/libnurbs/internals/curve.cc

index 33e27526435c7463a1376d22fba814e1d2b7c6fa..27e9e3cdc98d67a09b38bc85e607858f3441951c 100644 (file)
@@ -85,6 +85,14 @@ Curve::Curve( Quilt_ptr geo, REAL pta, REAL ptb, Curve *c )
     if( range[1] != ptb ) {
        Curve lower( *this, ptb, 0 );
     }
+
+    for( int i = 0; i < MAXORDER * MAXCOORDS; i++ ) {
+        cpts[i] = 0;
+        spts[i] = 0;
+    }
+
+    stepsize = 0;
+    minstepsize = 0;
 }
 
 /*--------------------------------------------------------------------------