glu/sgi: Initialize member of class Pool.
authorVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 05:45:01 +0000 (21:45 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 05:45:01 +0000 (21:45 -0800)
src/glu/sgi/libnurbs/internals/bufpool.cc

index 8cc847ab2259150f7ed7c20eebc2894a4141e8e9..53ac1a5695d138faa4003fe9b32503af6c4a3b00 100644 (file)
@@ -60,6 +60,9 @@ Pool::Pool( int _buffersize, int initpoolsize, const char *n )
     curblock   = 0;
     freelist   = 0;
     nextfree   = 0;
+    for (int i = 0; i < NBLOCKS; i++) {
+        blocklist[i] = 0;
+    }
 }
 
 /*-----------------------------------------------------------------------------