Changeset 11646

Show
Ignore:
Timestamp:
06/11/07 00:50:13 (1 year ago)
Author:
mloskot
Message:

Backported fix of segfault caused by dereferenced nullptr in ogr2ogr.cpp to the stable 1.4 branch (Ticket #1656).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/ogr/ogr2ogr.cpp

    r10646 r11646  
    565565        } 
    566566 
     567        CPLAssert( NULL != poSourceSRS ); 
     568        CPLAssert( NULL != poOutputSRS ); 
     569 
    567570        poCT = OGRCreateCoordinateTransformation( poSourceSRS, poOutputSRS ); 
    568571        if( poCT == NULL ) 
     
    575578                   "(PROJ.4 DLL/.so) could not be loaded.\n" ); 
    576579             
    577             poSrcLayer->GetSpatialRef()->exportToPrettyWkt( &pszWKT, FALSE ); 
     580            poSourceSRS->exportToPrettyWkt( &pszWKT, FALSE ); 
    578581            printf( "Source:\n%s\n", pszWKT ); 
    579582