Skip to content

Commit

Permalink
Summary: Drop redundant nullptr check on poCurrentLayer
Browse files Browse the repository at this point in the history
CID 171740 (#1 of 1): Dereference before null check (REVERSE_INULL)


git-svn-id: https://svn.osgeo.org/gdal/trunk@35687 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
schwehr committed Oct 10, 2016
1 parent aaa1787 commit 350413c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gdal/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3851,8 +3851,6 @@ OGRFeature* OGROSMDataSource::GetNextFeature( OGRLayer** ppoBelongingLayer,
poCurrentLayer = poNewCurLayer;
if( poFeature == NULL)
{
if( poCurrentLayer != NULL )
continue;
if( ppoBelongingLayer != NULL )
*ppoBelongingLayer = NULL;
if( pdfProgressPct != NULL )
Expand Down

0 comments on commit 350413c

Please sign in to comment.