summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-04 22:36:57 -0500
committerGravatar bunnei2018-02-04 22:36:57 -0500
commit69697535bfca47419333064758bc61a00eca0d79 (patch)
treeb9f7b74ae259da2bb0524f10a8abc38ca9edbcc9 /src
parentlogger: Add NIFM service logging category. (diff)
downloadyuzu-69697535bfca47419333064758bc61a00eca0d79.tar.gz
yuzu-69697535bfca47419333064758bc61a00eca0d79.tar.xz
yuzu-69697535bfca47419333064758bc61a00eca0d79.zip
lm: Ensure log string is non-empty before checking back().
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/lm/lm.cpp2
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:
125 if (line) { 125 if (line) {
126 output += std::to_string(line) + ':'; 126 output += std::to_string(line) + ':';
127 } 127 }
128 if (output.back() == ':') { 128 if (output.length() > 0 && output.back() == ':') {
129 output += ' '; 129 output += ' ';
130 } 130 }
131 output += message; 131 output += message;