summaryrefslogtreecommitdiff
path: root/hscript/key.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/key.cc')
-rw-r--r--hscript/key.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/key.cc b/hscript/key.cc
index a677670..d51e7d2 100644
--- a/hscript/key.cc
+++ b/hscript/key.cc
@@ -17,7 +17,7 @@
bool Horizon::Keys::BooleanKey::parse(const std::string what,
const std::string where,
const std::string key, bool *out) {
- std::string lower;
+ std::string lower(what.size(), 0);
std::transform(what.begin(), what.end(), lower.begin(), ::tolower);
if(lower == "true" || lower == "yes" || lower == "1") {