Author: danielsh
Date: Thu Aug 8 14:38:18 2013
New Revision: 1511811
URL: http://svn.apache.org/r1511811
Log:
Fix a compiler warning.
* subversion/libsvn_subr/utf8proc.c
(svn_utf__fuzzy_escape): Remove shadowing variable.
Modified:
subversion/trunk/subversion/libsvn_subr/utf8proc.c
Modified: subversion/trunk/subversion/libsvn_subr/utf8proc.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/utf8proc.c?rev=1511811&r1=1511810&r2=1511811&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/utf8proc.c (original)
+++ subversion/trunk/subversion/libsvn_subr/utf8proc.c Thu Aug 8 14:38:18 2013
@@ -419,10 +419,9 @@ svn_utf__fuzzy_escape(const char *src, a
{
const char *last;
- /* Determine the lenght of the UTF-8 sequence */
+ /* Determine the length of the UTF-8 sequence */
const char *const p = src + done;
- const uint8_t index = (uint8_t)*p;
- len = utf8proc_utf8class[index];
+ len = utf8proc_utf8class[(uint8_t)*p];
/* Check if the multi-byte sequence is valid UTF-8. */
if (len > 1 && len <= length - done)