From ed3215ee2118d9b99fcb622b0361f2bd6e84a9da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 14 Oct 2008 13:16:44 +0000 Subject: [PATCH] Save one check in certain situations. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28080 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/interface/utf8_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/interface/utf8_functions.h b/headers/private/interface/utf8_functions.h index cdb215a400..92e80ba84a 100644 --- a/headers/private/interface/utf8_functions.h +++ b/headers/private/interface/utf8_functions.h @@ -161,7 +161,7 @@ UTF8ToCharCode(const char **bytes) mask <<= 1; if (mask == 0x40) - break; + return result; } if (mask == 0x40)