Skip to content
Permalink
Browse files
OGR provider: fix Coverity warning about mFetchGeometry member being …
…not always initialized
  • Loading branch information
rouault committed May 14, 2016
1 parent 349a618 commit 45e7da1
Showing 1 changed file with 3 additions and 2 deletions.
@@ -38,13 +38,14 @@

QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
: QgsAbstractFeatureIteratorFromSource<QgsOgrFeatureSource>( source, ownSource, request )
, mFeatureFetched( false )
, mConn( nullptr )
, ogrLayer( nullptr )
, mSubsetStringSet( false )
, mFetchGeometry( false )
, mGeometrySimplifier( nullptr )
, mExpressionCompiled( false )
{
mFeatureFetched = false;

mConn = QgsOgrConnPool::instance()->acquireConnection( mSource->mProvider->dataSourceUri() );
if ( !mConn->ds )
{

0 comments on commit 45e7da1

Please sign in to comment.