a minor change to CmiPoolAllocInit so that it can be accidentally called twice.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 7 Nov 2010 18:07:47 +0000 (12:07 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 7 Nov 2010 18:07:47 +0000 (12:07 -0600)
src/conv-core/cmipool.c

index 11fed13becd980997f1d7a39a2acee48bed29670..c619ea72baac166c714c07b355be79f9623bfd72 100644 (file)
@@ -48,6 +48,7 @@ extern void free_nomigrate(void *mem);
 void CmiPoolAllocInit(int numBins)
 {
   int i;
+  if (CpvInitialized(bins)) return;
   CpvInitialize(char **, bins);
   CpvInitialize(int *, binLengths);
   CpvInitialize(int, maxBin);