db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / djvulibre / trunk / djvulibre-check-input-pool.patch
blob26e08e980dd0488e6c6226e58c5d0d7bdf21aaff
1 diff --git a/libdjvu/DataPool.cpp b/libdjvu/DataPool.cpp
2 index 5fcbedf..4c2eaf0 100644
3 --- a/libdjvu/DataPool.cpp
4 +++ b/libdjvu/DataPool.cpp
5 @@ -791,6 +791,8 @@ DataPool::create(const GP<DataPool> & pool, int start, int length)
6 DEBUG_MSG("DataPool::DataPool: pool=" << (void *)((DataPool *)pool) << " start=" << start << " length= " << length << "\n");
7 DEBUG_MAKE_INDENT(3);
9 + if (!pool) G_THROW( ERR_MSG("DataPool.zero_DataPool") );
11 DataPool *xpool=new DataPool();
12 GP<DataPool> retval=xpool;
13 xpool->init();