glu/sgi: Initialize members of class sampledLine.
authorVinson Lee <vlee@vmware.com>
Wed, 30 Dec 2009 01:22:11 +0000 (17:22 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 30 Dec 2009 01:22:11 +0000 (17:22 -0800)
src/glu/sgi/libnurbs/nurbtess/sampledLine.cc

index 6253a7c09d3767a27a50a8b59d7bded61fa30456..89f6c6e23fe7829ae07d956cb49be6720917c186 100644 (file)
@@ -107,6 +107,9 @@ sampledLine::sampledLine(Real pt1[2], Real pt2[2])
 //needs tp call init to setup
 sampledLine::sampledLine()
 {
+  npoints = 0;
+  points = NULL;
+  next = NULL;
 }
 
 //warning: ONLY pointer is copies!!!