You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/10/07 15:07:05 UTC

svn commit: r1005437 - /subversion/trunk/subversion/libsvn_subr/svn_string.c

Author: julianfoad
Date: Thu Oct  7 13:07:05 2010
New Revision: 1005437

URL: http://svn.apache.org/viewvc?rev=1005437&view=rev
Log:
* subversion/libsvn_subr/svn_string.c
  (svn_stringbuf_appendbyte): Re-enable the optimized code path. The
    optimization was accidentally disabled in r1002898.

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

Modified: subversion/trunk/subversion/libsvn_subr/svn_string.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/svn_string.c?rev=1005437&r1=1005436&r2=1005437&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/svn_string.c (original)
+++ subversion/trunk/subversion/libsvn_subr/svn_string.c Thu Oct  7 13:07:05 2010
@@ -406,7 +406,7 @@ svn_stringbuf_appendbyte(svn_stringbuf_t
    * to just write the new byte at the end of the used section
    * and terminate the string properly.
    */
-  if (str->blocksize < old_len + 1)
+  if (str->blocksize > old_len + 1)
     {
       /* The following read does not depend this write, so we
        * can issue the write first to minimize register pressure: