aboutsummaryrefslogtreecommitdiff
path: root/src/configparser.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-07-13 07:33:58 +0100
committerGravatar Sadie Powell2023-07-13 07:33:58 +0100
commitcd1c202165d57d083a0c656d9cd305ccd621a8c6 (patch)
treedc4f282c31d41c1c1de389450d327d2e707e8909 /src/configparser.cpp
parentFix some issues with ReadFile. (diff)
parentUpdate required OpenSSL version on Windows. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/configparser.cpp')
-rw-r--r--src/configparser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 22b0934ed..865789e2c 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -109,9 +109,15 @@ struct Parser final
{
while (true)
{
- int ch = next();
+ int ch = next(true);
if (ch == '\n')
return;
+
+ if (ch == EOF)
+ {
+ unget(ch);
+ return;
+ }
}
}