Commit ad13c954 authored by D-AIRY's avatar D-AIRY

BUG#144 fixed

parent 5e6f7df8
......@@ -90,7 +90,8 @@ int CConfig::parse(const char* file)
char c;
char cn = 0;
while(!feof(fp))
bool isRunning = true;
while(isRunning)
{
if(cn)
{
......@@ -100,6 +101,11 @@ int CConfig::parse(const char* file)
else
{
c = fgetc(fp);
if(feof(fp))
{
c = '\n';
isRunning = false;
}
}
if(bSectionNameDone)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment