mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Nullptr safety (KICAD-AD).
This commit is contained in:
parent
c5dd17a415
commit
e0bfc220b4
@ -446,7 +446,10 @@ bool JSON_SETTINGS::SaveToFile( const wxString& aDirectory, bool aForce )
|
||||
bool modified = false;
|
||||
|
||||
for( NESTED_SETTINGS* settings : m_nested_settings )
|
||||
modified |= settings->SaveToFile();
|
||||
{
|
||||
if( settings )
|
||||
modified |= settings->SaveToFile();
|
||||
}
|
||||
|
||||
modified |= Store();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user