void CPLPushFinderLocation( const char *pszLocation ) { FindFileTLS* pTLSData = CPLFinderInit(); if( pTLSData == NULL ) return; pTLSData->papszFinderLocations = CSLAddStringMayFail( pTLSData->papszFinderLocations, pszLocation ); }
/** CPLPushFinderLocation */ void CPLPushFinderLocation( const char *pszLocation ) { FindFileTLS* pTLSData = CPLFinderInit(); if( pTLSData == nullptr ) return; // Check if location already is in list. if( CSLFindStringCaseSensitive(pTLSData->papszFinderLocations, pszLocation) > -1 ) return; pTLSData->papszFinderLocations = CSLAddStringMayFail( pTLSData->papszFinderLocations, pszLocation ); }