Skip to content

Commit

Permalink
crssync: check result of CSVReadParseLine instead of feof
Browse files Browse the repository at this point in the history
(cherry picked from commit 27f4b0e)
  • Loading branch information
jef-n committed May 18, 2017
1 parent 08ffb73 commit 998d7c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2079,9 +2079,11 @@ bool QgsCoordinateReferenceSystem::syncDatumTransform( const QString& dbPath )
QStringList v;
v.reserve( sizeof( map ) / sizeof( *map ) );

while ( !feof( fp ) )
for(;;)
{
char **values = CSVReadParseLine( fp );
if( !values )
break;

v.clear();

Expand Down

0 comments on commit 998d7c6

Please sign in to comment.