Mesa (master): glu/sgi: Initialize member of class Pool.

Vinson Lee vlee at kemper.freedesktop.org
Mon Feb 15 05:46:01 UTC 2010


Module: Mesa
Branch: master
Commit: 9867b6eaad0f67f74b3bb98e2c120312117208ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9867b6eaad0f67f74b3bb98e2c120312117208ba

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb 14 21:45:01 2010 -0800

glu/sgi: Initialize member of class Pool.

---

 src/glu/sgi/libnurbs/internals/bufpool.cc |    3 +++
 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 8cc847a..53ac1a5 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;
+    }
 }
 
 /*-----------------------------------------------------------------------------




More information about the mesa-commit mailing list