Mesa (mesa_7_7_branch): glu/sgi: Initialize members of class sampledLine.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 29 17:23:10 PST 2009


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

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

glu/sgi: Initialize members of class sampledLine.

---

 src/glu/sgi/libnurbs/nurbtess/sampledLine.cc |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc b/src/glu/sgi/libnurbs/nurbtess/sampledLine.cc
index 6253a7c..89f6c6e 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!!!



More information about the mesa-commit mailing list