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 05bfd2b commit 7809c8ea99d1bacd669ff58f281c501b60543a52
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -36,13 +36,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 7809c8e

Please sign in to comment.
You can’t perform that action at this time.