Changeset 12025

Show
Ignore:
Timestamp:
08/31/07 16:16:42 (1 year ago)
Author:
warmerdam
Message:

Don't validate psGCPs in GDALInitGCPs() if nCount is zero.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/gcore/gdal_misc.cpp

    r11887 r12025  
    10631063 
    10641064{ 
    1065     VALIDATE_POINTER0( psGCP, "GDALInitGCPs" ); 
     1065    if( nCount > 0 ) 
     1066    { 
     1067        VALIDATE_POINTER0( psGCP, "GDALInitGCPs" ); 
     1068    } 
    10661069 
    10671070    for( int iGCP = 0; iGCP < nCount; iGCP++ )