Changeset 12301

Show
Ignore:
Timestamp:
10/03/07 00:22:22 (11 months ago)
Author:
warmerdam
Message:

do not short circuit object SetInstValue? (#1109)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/hfa/hfafield.cpp

    r11775 r12301  
    656656            } 
    657657 
    658             if( pszField != NULL && strlen(pszField) > 0 
    659                 && nExtraOffset < nDataSize ) 
     658            if( pszField != NULL && strlen(pszField) > 0 ) 
    660659            { 
    661660                return( poItemObjectType-> 
     
    664663                                          nDataSize - nExtraOffset, 
    665664                                          chReqType, pValue ) ); 
     665            } 
     666            else 
     667            { 
     668                CPLAssert( FALSE ); 
     669                return CE_Failure; 
    666670            } 
    667671        }