You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by eh...@apache.org on 2010/10/22 12:57:17 UTC

svn commit: r1026290 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

Author: ehu
Date: Fri Oct 22 10:57:16 2010
New Revision: 1026290

URL: http://svn.apache.org/viewvc?rev=1026290&view=rev
Log:
 * subversion/libsvn_wc/wc_db.c (svn_wc__db_scan_addition): Don't statement upon return.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1026290&r1=1026289&r2=1026290&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Fri Oct 22 10:57:16 2010
@@ -6017,6 +6017,9 @@ svn_wc__db_scan_addition(svn_wc__db_stat
 
       if (!have_row)
         {
+          /* Reset statement before (optionally) returning */
+          SVN_ERR(svn_sqlite__reset(stmt));
+
           if (current_abspath == local_abspath)
             /* ### maybe we should return a usage error instead?  */
             return svn_error_createf(SVN_ERR_WC_PATH_NOT_FOUND,
@@ -6024,7 +6027,6 @@ svn_wc__db_scan_addition(svn_wc__db_stat
                                      _("The node '%s' was not found."),
                                      svn_dirent_local_style(local_abspath,
                                                             scratch_pool));
-          SVN_ERR(svn_sqlite__reset(stmt));
 
           /* We just fell off the top of the WORKING tree. If we haven't
              found the operation root, then the child node that we just