Skip to content
Permalink
Browse files
crssync: check result of CSVReadParseLine instead of feof
(cherry picked from commit 27f4b0e)
  • Loading branch information
jef-n committed May 18, 2017
1 parent 08ffb73 commit 998d7c689ca3d3ef3a415c23bbcc4f92a2196187
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -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();

0 comments on commit 998d7c6

Please sign in to comment.