From 9867b6eaad0f67f74b3bb98e2c120312117208ba Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 14 Feb 2010 21:45:01 -0800 Subject: glu/sgi: Initialize member of class Pool. --- src/glu/sgi/libnurbs/internals/bufpool.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/glu') diff --git a/src/glu/sgi/libnurbs/internals/bufpool.cc b/src/glu/sgi/libnurbs/internals/bufpool.cc index 8cc847ab22..53ac1a5695 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; + } } /*----------------------------------------------------------------------------- -- cgit v1.2.3