Skip to content

Commit

Permalink
Fix ntfdump.cpp broken in r35142.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@35143 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
schwehr committed Aug 18, 2016
1 parent cebc64c commit fa6b1c3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gdal/ogr/ogrsf_frmts/ntf/ntfdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ static void NTFCount( const char * pszFile )
if( fp == NULL )
return;

// int anCount[100] = {};
for( int i = 0; i < 100; i++ )
anCount[i] = 0;
int anCount[100] = {};

NTFRecord *poRecord = NULL;
do {
Expand All @@ -102,7 +100,7 @@ static void NTFCount( const char * pszFile )
VSIFClose( fp );

printf( "\nReporting on: %s\n", pszFile );
for( i = 0; i < 100; i++ )
for( int i = 0; i < 100; i++ )
{
if( anCount[i] > 0 )
printf( "Found %d records of type %d\n", anCount[i], i );
Expand All @@ -116,14 +114,14 @@ static void NTFCount( const char * pszFile )
static void NTFDump( const char * pszFile, char **papszOptions )

{
OGRFeature *poFeature;
OGRNTFDataSource oDS;
OGRNTFDataSource oDS;

oDS.SetOptionList( papszOptions );

if( !oDS.Open( pszFile ) )
return;

OGRFeature *poFeature = NULL;
while( (poFeature = oDS.GetNextFeature()) != NULL )
{
printf( "-------------------------------------\n" );
Expand Down

0 comments on commit fa6b1c3

Please sign in to comment.