aboutsummaryrefslogtreecommitdiffstats
path: root/src/glu/sgi/libnurbs
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-14 21:45:01 -0800
committerVinson Lee <[email protected]>2010-02-14 21:45:01 -0800
commit9867b6eaad0f67f74b3bb98e2c120312117208ba (patch)
treebabaa0e7213a2d607e7bd7056dc2ff4b7ce4886e /src/glu/sgi/libnurbs
parent86d98fa4a2dfdae75e6ecd9a7e6e73d4183075a0 (diff)
glu/sgi: Initialize member of class Pool.
Diffstat (limited to 'src/glu/sgi/libnurbs')
-rw-r--r--src/glu/sgi/libnurbs/internals/bufpool.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glu/sgi/libnurbs/internals/bufpool.cc b/src/glu/sgi/libnurbs/internals/bufpool.cc
index 8cc847ab225..53ac1a5695d 100644
--- a/src/glu/sgi/libnurbs/internals/bufpool.cc
+++ b/src/glu/sgi/libnurbs/internals/bufpool.cc
@@ -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;
+ }
}
/*-----------------------------------------------------------------------------