diff --git a/Source/Standalone/dn_ini.c b/Source/Standalone/dn_ini.c index 8ad5850..b38343f 100644 --- a/Source/Standalone/dn_ini.c +++ b/Source/Standalone/dn_ini.c @@ -220,6 +220,7 @@ DN_INIToken DN_INI_NextToken(DN_INITokeniser const *tokeniser) tokeniser->prev_token.type == DN_INITokenType_MultilineValue || tokeniser->prev_token.type == DN_INITokenType_Section) { result.type = DN_INITokenType_EndOfStream; + break; } else { result.type = DN_INITokenType_Error; result.error = DN_INIStr8Lit("Premature end of stream encountered malforming the last key-value pair");