Fix infinite loop when schema file contains a comment or an empty line

This commit is contained in:
Michele Renda 2016-10-17 05:58:02 +03:00 committed by Wayne Stambaugh
parent ba81eda197
commit 64bb1ca924
1 changed files with 1 additions and 1 deletions

View File

@ -2662,7 +2662,7 @@ void SCH_LEGACY_PLUGIN_CACHE::loadDrawEntries( std::unique_ptr< LIB_PART >& aPar
case '\n': // Empty line
case '\r':
case 0:
continue;
break;
default:
SCH_PARSE_ERROR( _( "undefined DRAW entry" ), aReader, line );