[poppler] Branch 'xpdf303merge' - goo/GooList.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Aug 30 11:44:26 PDT 2011


 goo/GooList.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 95142a8e63e476324e368785001a23d4f1d462b9
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Aug 30 20:47:12 2011 +0200

    xpdf303: If size is 0 reserve 8 anyway

diff --git a/goo/GooList.cc b/goo/GooList.cc
index dc6e4e2..9342737 100644
--- a/goo/GooList.cc
+++ b/goo/GooList.cc
@@ -29,7 +29,7 @@ GooList::GooList() {
 }
 
 GooList::GooList(int sizeA) {
-  size = sizeA;
+  size = sizeA ? sizeA : 8;
   data = (void **)gmallocn(size, sizeof(void*));
   length = 0;
   inc = 0;


More information about the poppler mailing list