diff --git a/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp b/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp index ad2eb0ee8d5..66060f6ecd5 100644 --- a/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp +++ b/mozilla/mailnews/base/search/src/nsMsgSearchTerm.cpp @@ -722,7 +722,8 @@ nsresult nsMsgSearchTerm::MatchBody (nsMsgSearchScopeTerm *scope, PRUint32 offse } #endif } - if (*compare != CR && *compare != LF) + char startChar = (char) compare.CharAt(0); + if (startChar != CR && startChar != LF) { err = MatchString (&compare, nsnull, PR_TRUE, &result); lines++;