OSDN Git Service

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 8cc847a..53ac1a5 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;
+    }
 }
 
 /*-----------------------------------------------------------------------------