Skip to content
Snippets Groups Projects
Commit ad13c954 authored by D-AIRY's avatar D-AIRY
Browse files

BUG#144 fixed

parent 5e6f7df8
No related branches found
No related tags found
1 merge request!1Version 0.10.1
...@@ -90,7 +90,8 @@ int CConfig::parse(const char* file) ...@@ -90,7 +90,8 @@ int CConfig::parse(const char* file)
char c; char c;
char cn = 0; char cn = 0;
while(!feof(fp)) bool isRunning = true;
while(isRunning)
{ {
if(cn) if(cn)
{ {
...@@ -100,6 +101,11 @@ int CConfig::parse(const char* file) ...@@ -100,6 +101,11 @@ int CConfig::parse(const char* file)
else else
{ {
c = fgetc(fp); c = fgetc(fp);
if(feof(fp))
{
c = '\n';
isRunning = false;
}
} }
if(bSectionNameDone) if(bSectionNameDone)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment