Rolling 20210711

This commit is contained in:
jomjol
2021-07-11 18:27:25 +02:00
parent d7bb147a23
commit b890ffc5f3
5 changed files with 6 additions and 7 deletions

View File

@@ -130,13 +130,12 @@ bool ClassFlow::getNextLine(FILE* pfile, string *rt)
*rt = trim(*rt);
while ((zw[0] == ';' || zw[0] == '#' || (rt->size() == 0)) && !(zw[1] == '[')) // Kommentarzeilen (; oder #) und Leerzeilen überspringen, es sei denn es ist ein neuer auskommentierter Paragraph
{
fgets(zw, 1024, pfile);
printf("%s", zw);
if (feof(pfile))
if (!fgets(zw, 1024, pfile))
{
*rt = "";
return false;
}
printf("%s", zw);
*rt = zw;
*rt = trim(*rt);
}