subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1615506 - in /subversion/branches/authzperf/subversion: libsvn_repos/log.c libsvn_subr/string.c
Date Mon, 04 Aug 2014 08:50:37 GMT
Author: stefan2
Date: Mon Aug  4 08:50:36 2014
New Revision: 1615506

URL: http://svn.apache.org/r1615506
Log:
On the authzperf branch: Fix compiler warnings.

* subversion/libsvn_repos/log.c
  (detect_changed): Don't have a second iterpool.

* subversion/libsvn_subr/string.c
  (svn_stringbuf_replace_all): Don't shadow the outer TO_COPY variable.

Found by: brane

Modified:
    subversion/branches/authzperf/subversion/libsvn_repos/log.c
    subversion/branches/authzperf/subversion/libsvn_subr/string.c

Modified: subversion/branches/authzperf/subversion/libsvn_repos/log.c
URL: http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/libsvn_repos/log.c?rev=1615506&r1=1615505&r2=1615506&view=diff
==============================================================================
--- subversion/branches/authzperf/subversion/libsvn_repos/log.c (original)
+++ subversion/branches/authzperf/subversion/libsvn_repos/log.c Mon Aug  4 08:50:36 2014
@@ -385,7 +385,6 @@ detect_changed(apr_hash_t **changed,
       apr_array_header_t *sorted;
       int i;
       apr_pool_t *scratch_pool = svn_pool_create(pool);
-      apr_pool_t *iterpool = svn_pool_create(pool);
 
       sorted = svn_sort__hash(changes, svn_sort_compare_items_lexically,
                               scratch_pool);

Modified: subversion/branches/authzperf/subversion/libsvn_subr/string.c
URL: http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/libsvn_subr/string.c?rev=1615506&r1=1615505&r2=1615506&view=diff
==============================================================================
--- subversion/branches/authzperf/subversion/libsvn_subr/string.c (original)
+++ subversion/branches/authzperf/subversion/libsvn_subr/string.c Mon Aug  4 08:50:36 2014
@@ -741,7 +741,7 @@ svn_stringbuf_replace_all(svn_stringbuf_
    * separated by REPLACEMENT. */
   for ( ; pos; pos = strstr(str->data + current, to_find), ++replacements)
     {
-      apr_size_t to_copy = pos - str->data - current;
+      to_copy = pos - str->data - current;
       svn_stringbuf_ensure(str, str->len + to_copy + replacement_len);
 
       if (to_copy)



Mime
View raw message