summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-29 20:45:24 -0800
committerVinson Lee <[email protected]>2009-12-29 20:45:24 -0800
commit97b899374cf6f2f3926863ca70c5561ef6c189a9 (patch)
tree628424c8106b2547607782a0a0192dab90d35b02
parent5169775345fc6b17b1f984e8bc3b5c3708733a7f (diff)
glu/sgi: Initialize member of struct GridVertex.
-rw-r--r--src/glu/sgi/libnurbs/internals/gridvertex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glu/sgi/libnurbs/internals/gridvertex.h b/src/glu/sgi/libnurbs/internals/gridvertex.h
index 36a65c7bdd3..2e27436ef81 100644
--- a/src/glu/sgi/libnurbs/internals/gridvertex.h
+++ b/src/glu/sgi/libnurbs/internals/gridvertex.h
@@ -38,7 +38,7 @@
struct GridVertex {
long gparam[2];
- GridVertex( void ) {}
+ GridVertex( void ) { gparam[0] = 0, gparam[1] = 0; }
GridVertex( long u, long v ) { gparam[0] = u, gparam[1] = v; }
void set( long u, long v ) { gparam[0] = u, gparam[1] = v; }
long nextu() { return gparam[0]++; }