7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:41:42 +00:00

Fix clang build warning

This commit is contained in:
JamesJCode 2024-10-17 19:24:30 +01:00
parent 5127088c3f
commit 3f1a8f0e1d

View File

@ -447,7 +447,10 @@ bool FP_LIB_TABLE::IsFootprintLibWritable( const wxString& aNickname )
try
{
const FP_LIB_TABLE_ROW* row = FindRow( aNickname, true );
wxCHECK2( row->plugin, false );
if( !row || !row->plugin )
return false;
return row->plugin->IsLibraryWritable( row->GetFullURI( true ) );
}
catch( ... )