Changeset 12392
- Timestamp:
- 10/12/07 23:48:15 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/warmerdam/1.4-esri/gdal/frmts/hfa/hfaentry.cpp
r10646 r12392 228 228 if( poNext == NULL && nNextPos != 0 ) 229 229 { 230 // Check if we have a loop on the next node in this sibling chain. 231 HFAEntry *poPast; 232 233 for( poPast = this; 234 poPast != NULL && poPast->nFilePos != nNextPos; 235 poPast = poPast->poPrev ) {} 236 237 if( poPast != NULL ) 238 { 239 CPLError( CE_Warning, CPLE_AppDefined, 240 "Corrupt (looping) entry in %s, ignoring some entries after %s.", 241 psHFA->pszFilename, 242 szName ); 243 nNextPos = 0; 244 return NULL; 245 } 246 230 247 poNext = new HFAEntry( psHFA, nNextPos, poParent, this ); 231 248 }
