You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by bl...@apache.org on 2010/12/27 23:22:50 UTC
svn commit: r1053209 -
/subversion/trunk/subversion/tests/libsvn_subr/error-test.c
Author: blair
Date: Mon Dec 27 22:22:49 2010
New Revision: 1053209
URL: http://svn.apache.org/viewvc?rev=1053209&view=rev
Log:
Move a variable into a smaller scope.
* subversion/tests/libsvn_subr/error-test.c
(test_error_purge_tracing):
Move err2_copy into a smaller scope where it is used.
Modified:
subversion/trunk/subversion/tests/libsvn_subr/error-test.c
Modified: subversion/trunk/subversion/tests/libsvn_subr/error-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/error-test.c?rev=1053209&r1=1053208&r2=1053209&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/error-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/error-test.c Mon Dec 27 22:22:49 2010
@@ -121,7 +121,7 @@ test_error_purge_tracing(apr_pool_t *poo
/* Make an error chain containing only tracing errors and check that
svn_error_purge_tracing() asserts on it. */
{
- svn_error_t err_copy, err2_copy;
+ svn_error_t err_copy;
svn_error_malfunction_handler_t orig_handler;
/* For this test, use a random error status. */
@@ -142,7 +142,7 @@ test_error_purge_tracing(apr_pool_t *poo
{
/* If err2 does share the same pool as err, then make a copy
of err2 before err is cleared. */
- err2_copy = *err2;
+ svn_error_t err2_copy = *err2;
svn_error_clear(err);