Navlib: Ensure a pointer is initialized.

This commit is contained in:
jean-pierre charras 2023-05-10 09:27:08 +02:00
parent fb23fe3084
commit a42ef9de77
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,8 @@ NL_SCHEMATIC_PLUGIN::NL_SCHEMATIC_PLUGIN()
{
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
m_impl = new NL_SCHEMATIC_PLUGIN_IMPL();
else
m_impl = nullptr;
}

View File

@ -27,6 +27,8 @@ NL_PCBNEW_PLUGIN::NL_PCBNEW_PLUGIN( PCB_DRAW_PANEL_GAL* aViewport )
{
if( ADVANCED_CFG::GetCfg().m_Use3DConnexionDriver )
m_impl = new NL_PCBNEW_PLUGIN_IMPL( aViewport );
else
m_impl = nullptr;
}