Skip to content

Commit

Permalink
don't crash on empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 12, 2025
1 parent 467af31 commit 33dbc34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ContentLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ bool ContentLoader::parseContentIndexFile( const char* filepath )
char configfilepath[FILENAME_BUFFERSIZE] = {0};

getline (myfile,line);
if (line.empty())
continue;

// some systems don't remove the \r char as a part of the line change:
// also trim trailing space
Expand Down

0 comments on commit 33dbc34

Please sign in to comment.