mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 04:16:24 -05:00
lm: Ensure log string is non-empty before checking back().
This commit is contained in:
parent
485c6541cf
commit
69697535bf
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ private:
|
|||
if (line) {
|
||||
output += std::to_string(line) + ':';
|
||||
}
|
||||
if (output.back() == ':') {
|
||||
if (output.length() > 0 && output.back() == ':') {
|
||||
output += ' ';
|
||||
}
|
||||
output += message;
|
||||
|
|
Loading…
Reference in a new issue