Fix infinite loop when schema file contains a comment or an empty line
This commit is contained in:
parent
ba81eda197
commit
64bb1ca924
|
@ -2662,7 +2662,7 @@ void SCH_LEGACY_PLUGIN_CACHE::loadDrawEntries( std::unique_ptr< LIB_PART >& aPar
|
||||||
case '\n': // Empty line
|
case '\n': // Empty line
|
||||||
case '\r':
|
case '\r':
|
||||||
case 0:
|
case 0:
|
||||||
continue;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
SCH_PARSE_ERROR( _( "undefined DRAW entry" ), aReader, line );
|
SCH_PARSE_ERROR( _( "undefined DRAW entry" ), aReader, line );
|
||||||
|
|
Loading…
Reference in New Issue