From: Vinson Lee Date: Wed, 30 Dec 2009 01:22:11 +0000 (-0800) Subject: glu/sgi: Initialize members of class sampledLine. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5060fb428d841154013a49af7d4efc3144792260;p=mesa.git glu/sgi: Initialize members of class sampledLine. --- diff --git a/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc b/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc index 6253a7c09d3..89f6c6e23fe 100644 --- a/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc +++ b/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc @@ -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!!!