diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index b6745328908..2dc1fc8e2c7 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -47,7 +47,7 @@ void MacText::splitString(Common::String &str) { const char *s = str.c_str(); Common::String tmp; - bool prevCR; + bool prevCR = false; while (*s) { if (*s == '\n' && prevCR) { // trean \r\n as one