diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-04 22:36:57 -0500 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-02-04 22:36:57 -0500 |
commit | 69697535bfca47419333064758bc61a00eca0d79 (patch) | |
tree | b9f7b74ae259da2bb0524f10a8abc38ca9edbcc9 /src | |
parent | 485c6541cfec7f5c1405a6cfa82712e0485e4464 (diff) |
lm: Ensure log string is non-empty before checking back().
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/lm/lm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index 2843e0e40..7ff9c37f3 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp @@ -125,7 +125,7 @@ private: if (line) { output += std::to_string(line) + ':'; } - if (output.back() == ':') { + if (output.length() > 0 && output.back() == ':') { output += ' '; } output += message; |