Skip to content

Commit

Permalink
gdaldrivermanager.cpp: Do not look for plugins in GetRealDriver when …
Browse files Browse the repository at this point in the history
…GDAL_NO_AUTOLOAD set.

Fixes #11332
  • Loading branch information
schwehr committed Nov 28, 2024
1 parent 4cfbcf8 commit ccfa017
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcore/gdaldrivermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,9 @@ GDALDriver *GDALPluginDriverProxy::GetRealDriver()
}
else
{
#ifdef GDAL_NO_AUTOLOAD
return nullptr;
#else
CPLString osFuncName;
if (STARTS_WITH(m_osPluginFileName.c_str(), "gdal_"))
{
Expand Down Expand Up @@ -1443,6 +1446,7 @@ GDALDriver *GDALPluginDriverProxy::GetRealDriver()
poDriverManager->m_oMapRealDrivers.erase(oIter);
}
}
#endif // GDAL_NO_AUTOLOAD
}

if (m_poRealDriver)
Expand Down

0 comments on commit ccfa017

Please sign in to comment.