glu/sgi: Initialize members of class StoredVertex.
authorVinson Lee <vlee@vmware.com>
Sun, 10 Jan 2010 07:55:05 +0000 (23:55 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 10 Jan 2010 07:55:05 +0000 (23:55 -0800)
src/glu/sgi/libnurbs/interface/glsurfeval.h

index 1567c6b098cf98a15a353dff71c555b05d788b67..621e59391aa98266bbfdf76103376bc533ee359e 100644 (file)
@@ -83,7 +83,7 @@ typedef struct surfEvalMachine{
 
 class StoredVertex {
 public:
-               StoredVertex() { type = 0; }
+               StoredVertex() { type = 0; coord[0] = 0; coord[1] = 0; point[0] = 0; point[1] = 0; }
                ~StoredVertex(void) {}
     void       saveEvalCoord(REAL x, REAL y) 
                    {coord[0] = x; coord[1] = y; type = TYPECOORD; }