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 45e7da15e19316117837f2f2a718d8c0794de5cd
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -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.
You can’t perform that action at this time.