1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-01-29 02:57:00 -06:00

lm: Ensure log string is non-empty before checking back().

This commit is contained in:
bunnei 2018-02-04 22:36:57 -05:00
parent 485c6541cf
commit 69697535bf

View File

@ -125,7 +125,7 @@ private:
if (line) {
output += std::to_string(line) + ':';
}
if (output.back() == ':') {
if (output.length() > 0 && output.back() == ':') {
output += ' ';
}
output += message;