summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-11-01 15:40:38 +0100
committerGitHub <noreply@github.com>2016-11-01 15:40:38 +0100
commit80f10dc783b75aa6fa2a3fe490a6e94b2a78e467 (patch)
treeb2cde7029c53fe184d2e19cc3fdb4d2c2de79a4c
parent3b78613576364c4ac6a4e4af43a2eea056c8dd3f (diff)
parent1809cf18798f22a385edd9178a7e893ce77243ab (diff)
Merge pull request #1215 from SaberUK/master+config
Strip carriage returns in the config parser.
-rw-r--r--src/configparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configparser.cpp b/src/configparser.cpp
index 3be1ac9c5..8bf9aaec2 100644
--- a/src/configparser.cpp
+++ b/src/configparser.cpp
@@ -173,7 +173,7 @@ struct Parser
}
else if (ch == '"')
break;
- else
+ else if (ch != '\r')
value.push_back(ch);
}