Skip to content

Commit

Permalink
修复ini解析bug
Browse files Browse the repository at this point in the history
  • Loading branch information
quqiOnfree committed Dec 30, 2023
1 parent 8272331 commit 5e74f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ INIObject qini::INIParser::fastParse(std::ifstream& infile)

bool INIParser::skipSpace(std::string_view::iterator& i, std::string_view data, long long& error_line)
{
while (i != data.end() && (*i == ' ' || *i == '\n' || *i == '\t' || *i == ';' || *i == '#'))
while (i != data.end() && (*i == ' ' || *i == '\n' || *i == '\t' || *i == ';' || *i == '#' || *i == '\0'))
{
if (*i == ';' || *i == '#')
{
Expand Down

0 comments on commit 5e74f34

Please sign in to comment.