subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1383640 - /subversion/trunk/subversion/libsvn_subr/utf_validate.c
Date Tue, 11 Sep 2012 22:19:58 GMT
Author: stefan2
Date: Tue Sep 11 22:19:58 2012
New Revision: 1383640

URL: http://svn.apache.org/viewvc?rev=1383640&view=rev
Log:
* subversion/libsvn_subr/utf_validate.c
  (first_non_fsm_start_char_cstring): fix "unreachable code" warning
  (first_non_fsm_start_char): use the same code pattern here as well

Modified:
    subversion/trunk/subversion/libsvn_subr/utf_validate.c

Modified: subversion/trunk/subversion/libsvn_subr/utf_validate.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/utf_validate.c?rev=1383640&r1=1383639&r2=1383640&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/utf_validate.c (original)
+++ subversion/trunk/subversion/libsvn_subr/utf_validate.c Tue Sep 11 22:19:58 2012
@@ -286,7 +286,7 @@ first_non_fsm_start_char(const char *dat
   /* The remaining odd bytes will be examined the naive way: */
   for (; max_len > 0; ++data, --max_len)
     if (*data < 0 || *data >= 0x80)
-      return data;
+      break;
 
   return data;
 }
@@ -324,7 +324,7 @@ first_non_fsm_start_char_cstring(const c
   /* The remaining odd bytes will be examined the naive way: */
   for (; ; ++data)
     if (*data <= 0 || *data >= 0x80)
-      return data;
+      break;
 
   return data;
 }



Mime
View raw message