From 74c84662195aafc20b7e65d59d5c2881a9c2687e Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 25 Jul 2013 22:15:20 +1000 Subject: Make Coverity happy. Ensure return value is seen to never be negative although it never really could be. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index 578adfefd..b8ab420fd 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -825,7 +825,7 @@ int Document::SafeSegment(const char *text, int length, int lengthSegment) const return length; int lastSpaceBreak = -1; int lastPunctuationBreak = -1; - int lastEncodingAllowedBreak = -1; + int lastEncodingAllowedBreak = 0; for (int j=0; j < lengthSegment;) { unsigned char ch = static_cast(text[j]); if (j > 0) { -- cgit v1.2.3